@@ -164,6 +164,9 @@ 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;
@@ -201,6 +204,9 @@ void SimpleCaptureUnbalanced::requestComplete(Request *request)
if (captureCompleted())
return;
+ EXPECT_EQ(request->status(), Request::Status::RequestComplete)
+ << "Request didn't complete successfully";
+
request->reuse(Request::ReuseBuffers);
if (camera_->queueRequest(request))
loop_->exit(-EINVAL);
@@ -232,5 +238,8 @@ void SimpleCaptureOverflow::capture()
void SimpleCaptureOverflow::requestComplete([[maybe_unused]] Request *request)
{
+ EXPECT_EQ(request->status(), Request::Status::RequestComplete)
+ << "Request didn't complete successfully";
+
captureCompleted();
}