summaryrefslogtreecommitdiff
path: root/test/camera/configuration_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/camera/configuration_set.cpp')
-rw-r--r--test/camera/configuration_set.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/camera/configuration_set.cpp b/test/camera/configuration_set.cpp
index ece987c7..9f10f795 100644
--- a/test/camera/configuration_set.cpp
+++ b/test/camera/configuration_set.cpp
@@ -21,7 +21,7 @@ protected:
CameraTest::init();
config_ = camera_->generateConfiguration({ StreamRole::VideoRecording });
- if (!config_) {
+ if (!config_ || config_->size() != 1) {
cout << "Failed to generate default configuration" << endl;
CameraTest::cleanup();
return TestFail;
@@ -34,11 +34,6 @@ protected:
{
StreamConfiguration &cfg = config_->at(0);
- if (!config_->isValid()) {
- cout << "Failed to read default configuration" << endl;
- return TestFail;
- }
-
if (camera_->acquire()) {
cout << "Failed to acquire the camera" << endl;
return TestFail;