summaryrefslogtreecommitdiffstats
path: root/tests/camera2/CameraModuleTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/camera2/CameraModuleTests.cpp')
-rw-r--r--tests/camera2/CameraModuleTests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/camera2/CameraModuleTests.cpp b/tests/camera2/CameraModuleTests.cpp
index 2e85d81..2b6c757 100644
--- a/tests/camera2/CameraModuleTests.cpp
+++ b/tests/camera2/CameraModuleTests.cpp
@@ -120,7 +120,7 @@ TEST_F(CameraModuleTest, GetCameraInfoBadIndices) {
for (unsigned i = 0; i < sizeof(idx)/sizeof(idx[0]); ++i) {
struct camera_info info;
EXPECT_NE(OK, mModule->getCameraInfo(idx[i], &info));
- EXPECT_EQ(-ENODEV, mModule->getCameraInfo(idx[i], &info))
+ EXPECT_EQ(-EINVAL, mModule->getCameraInfo(idx[i], &info))
<< "Incorrect error code for get_camera_info idx= "
<< idx[i];
}