summaryrefslogtreecommitdiffstats
path: root/test/grab.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/grab.c')
-rw-r--r--test/grab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/grab.c b/test/grab.c
index 1dd573f..f7a7548 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -50,5 +50,6 @@ int main(int argc, char *argv[])
handle_error(uca_cam_stop_recording(cam));
uca_destroy(u);
free(buffer);
- return 0;
+
+ return error != UCA_NO_ERROR ? 1 : 0;
}