@@ -175,6 +175,7 @@ int SimpleCaptureBalanced::queueRequest(Request *request)
void SimpleCaptureBalanced::requestComplete(Request *request)
{
+ EXPECT_EQ(request->status(), Request::Status::RequestComplete) << "Request didn't complete successfully";
if (captureCompleted())
return;
@@ -210,6 +211,7 @@ void SimpleCaptureUnbalanced::capture(unsigned int numRequests)
void SimpleCaptureUnbalanced::requestComplete(Request *request)
{
+ EXPECT_EQ(request->status(), Request::Status::RequestComplete) << "Request didn't complete successfully";
if (captureCompleted())
return;
@@ -245,5 +247,6 @@ void SimpleCaptureOverflow::capture()
void SimpleCaptureOverflow::requestComplete([[maybe_unused]] Request *request)
{
+ EXPECT_EQ(request->status(), Request::Status::RequestComplete) << "Request didn't complete successfully";
captureCompleted();
}
When a request fails to queue it is completed but with its status set to RequestCancelled. Add a check in the requestComplete callback to make sure that the request was completed successfully. Signed-off-by: NĂcolas F. R. A. Prado <nfraprado@collabora.com> --- Added in v5 src/lc-compliance/simple_capture.cpp | 3 +++ 1 file changed, 3 insertions(+)