camera2_test: Allow for HAL2 version >= 2.0 (i.e. 2.1, 3.0, etc)
Change-Id: If9004d2a6d5fc581b8f63814f2f115bcd7fa5a34
diff --git a/tests/camera2/camera2.cpp b/tests/camera2/camera2.cpp
index de5b8c6..64803c0 100644
--- a/tests/camera2/camera2.cpp
+++ b/tests/camera2/camera2.cpp
@@ -60,10 +60,10 @@
}
int16_t version2_0 = CAMERA_MODULE_API_VERSION_2_0;
- ASSERT_EQ(version2_0, module->module_api_version)
+ ASSERT_LE(version2_0, module->module_api_version)
<< "Camera module version is 0x"
<< std::hex << module->module_api_version
- << ", not 2.0. (0x"
+ << ", should be at least 2.0. (0x"
<< std::hex << CAMERA_MODULE_API_VERSION_2_0 << ")";
sCameraModule = reinterpret_cast<camera_module_t*>(module);