summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-09-05 14:44:57 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-09-05 14:44:57 +0200
commite6202ad942e39874a2834c204151f3013403ff1b (patch)
tree93c117125996087f1cf1b61fda2d77ecdcd3d57d /test
parentf51917b65fe83d996589ce39f6727c6d71de9209 (diff)
downloadlibuca-e6202ad942e39874a2834c204151f3013403ff1b.tar.gz
libuca-e6202ad942e39874a2834c204151f3013403ff1b.tar.bz2
libuca-e6202ad942e39874a2834c204151f3013403ff1b.tar.xz
libuca-e6202ad942e39874a2834c204151f3013403ff1b.zip
Return error code
Diffstat (limited to 'test')
-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;
}