From e6202ad942e39874a2834c204151f3013403ff1b Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 5 Sep 2011 14:44:57 +0200 Subject: Return error code --- test/grab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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; } -- cgit v1.2.3