summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-11-04 11:46:11 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-11-04 11:46:47 +0100
commitfa458b96410401d070e06fabdf4b4490da898927 (patch)
treeef311ed0b9335d3d534d000eb793abfe4faffbc3 /tests
parent462801e87dda6467042426c955c2f29e898c8b48 (diff)
downloaduca-ufo-fa458b96410401d070e06fabdf4b4490da898927.tar.gz
uca-ufo-fa458b96410401d070e06fabdf4b4490da898927.tar.bz2
uca-ufo-fa458b96410401d070e06fabdf4b4490da898927.tar.xz
uca-ufo-fa458b96410401d070e06fabdf4b4490da898927.zip
Stop recording if test fails
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test.c b/tests/test.c
index 34a83cf..c8e89af 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -62,8 +62,10 @@ check_roi_size (UcaCamera *camera, guint x, guint y, guint width, guint height,
for (guint i = 0; i < 30; i++) {
uca_camera_grab (camera, frame, error);
- if (*error != NULL)
+ if (*error != NULL) {
+ uca_camera_stop_recording (camera, NULL);
goto exit_check_roi_size;
+ }
}
uca_camera_stop_recording (camera, error);