[clutter/clutter-1.10] tests: Make sure we return 0 only on error



commit b1fa61a57267772e0a4e0686fe690a4f8429e237
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 ab1f40d..e25290b 100644
--- a/tests/conform/events-touch.c
+++ b/tests/conform/events-touch.c
@@ -355,13 +355,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]