diff --git a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp index 8ff9847d77..e6cd3b4508 100644 --- a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp +++ b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp @@ -1417,8 +1417,8 @@ TEST_F(CameraHidlTest, cancelPicture) { } } -// Image capture cancel should fail when image capture is not running. -TEST_F(CameraHidlTest, cancelPictureFail) { +// Image capture cancel is a no-op when image capture is not running. +TEST_F(CameraHidlTest, cancelPictureNOP) { hidl_vec cameraDeviceNames = getCameraDeviceNames(mProvider); for (const auto& name : cameraDeviceNames) { @@ -1433,7 +1433,7 @@ TEST_F(CameraHidlTest, cancelPictureFail) { Return returnStatus = device1->cancelPicture(); ASSERT_TRUE(returnStatus.isOk()); - ASSERT_NE(Status::OK, returnStatus); + ASSERT_EQ(Status::OK, returnStatus); stopPreviewAndClose(device1); }