From b4222db71de7a5588a4160a8699f295906181176 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 14 Jun 2012 11:17:05 +0200 Subject: [PATCH] tests: Make sure we return 0 only on error --- tests/conform/events-touch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conform/events-touch.c b/tests/conform/events-touch.c index 52ee4d7..237a245 100644 --- a/tests/conform/events-touch.c +++ b/tests/conform/events-touch.c @@ -350,13 +350,13 @@ init_uinput (void) goto error; } - return 0; + return 1; error: if (fd != -1) close (fd); - return -1; + return 0; } #endif /* defined CLUTTER_WINDOWING_X11 && OS_LINUX && HAVE_XINPUT_2_2 */ -- 2.7.4