[clutter] tests: Make sure we return 0 only on error
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] tests: Make sure we return 0 only on error
- Date: Thu, 14 Jun 2012 10:17:43 +0000 (UTC)
commit b4222db71de7a5588a4160a8699f295906181176
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date: Thu Jun 14 11:17:05 2012 +0200
tests: Make sure we return 0 only on error
tests/conform/events-touch.c | 4 ++--
1 files 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]