summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-07-10 15:04:24 -0700
committerEino-Ville Talvala <etalvala@google.com>2015-07-10 15:06:02 -0700
commit5ad8086ad70b5c67222745ed55e6edf2ed715c81 (patch)
tree1780440f7ad5724609274c7a0798db79ee88bdf6 /tests
parenta36ffbe0bbccbc2173589da1941dd39ee01a8004 (diff)
downloadhardware_libhardware-5ad8086ad70b5c67222745ed55e6edf2ed715c81.zip
hardware_libhardware-5ad8086ad70b5c67222745ed55e6edf2ed715c81.tar.gz
hardware_libhardware-5ad8086ad70b5c67222745ed55e6edf2ed715c81.tar.bz2
Camera2 tests: Fix incorrect error code check
Bug: 22410279 Change-Id: Iad74e90d148908aafd39878608c10fe03c689b8a
Diffstat (limited to 'tests')
-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];
}