diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-11-04 11:46:11 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-11-04 11:46:47 +0100 |
commit | fa458b96410401d070e06fabdf4b4490da898927 (patch) | |
tree | ef311ed0b9335d3d534d000eb793abfe4faffbc3 /tests | |
parent | 462801e87dda6467042426c955c2f29e898c8b48 (diff) | |
download | uca-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.c | 4 |
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); |