summaryrefslogtreecommitdiff
path: root/test/camera
diff options
context:
space:
mode:
Diffstat (limited to 'test/camera')
-rw-r--r--test/camera/capture.cpp4
-rw-r--r--test/camera/configuration_set.cpp4
-rw-r--r--test/camera/statemachine.cpp4
3 files changed, 9 insertions, 3 deletions
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp
index c0835c25..98e71905 100644
--- a/test/camera/capture.cpp
+++ b/test/camera/capture.cpp
@@ -42,7 +42,9 @@ protected:
int init() override
{
- CameraTest::init();
+ int ret = CameraTest::init();
+ if (ret)
+ return ret;
config_ = camera_->generateConfiguration({ StreamRole::VideoRecording });
if (!config_ || config_->size() != 1) {
diff --git a/test/camera/configuration_set.cpp b/test/camera/configuration_set.cpp
index 9f10f795..f88da96c 100644
--- a/test/camera/configuration_set.cpp
+++ b/test/camera/configuration_set.cpp
@@ -18,7 +18,9 @@ class ConfigurationSet : public CameraTest
protected:
int init() override
{
- CameraTest::init();
+ int ret = CameraTest::init();
+ if (ret)
+ return ret;
config_ = camera_->generateConfiguration({ StreamRole::VideoRecording });
if (!config_ || config_->size() != 1) {
diff --git a/test/camera/statemachine.cpp b/test/camera/statemachine.cpp
index d489f197..84d2a6fa 100644
--- a/test/camera/statemachine.cpp
+++ b/test/camera/statemachine.cpp
@@ -235,7 +235,9 @@ protected:
int init() override
{
- CameraTest::init();
+ int ret = CameraTest::init();
+ if (ret)
+ return ret;
defconf_ = camera_->generateConfiguration({ StreamRole::VideoRecording });
if (!defconf_) {