[glib] Fix g_test_trap_reached_timeout



commit 3343bc3385c54f9098869103a7817a71a7e05ca7
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 25 23:50:37 2013 -0500

    Fix g_test_trap_reached_timeout
    
    The function was returning the opposite of what the
    documentation says.

 glib/gtestutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gtestutils.c b/glib/gtestutils.c
index feaafa3..3e079c1 100644
--- a/glib/gtestutils.c
+++ b/glib/gtestutils.c
@@ -2930,7 +2930,7 @@ g_test_trap_has_passed (void)
 gboolean
 g_test_trap_reached_timeout (void)
 {
-  return test_trap_last_status != G_TEST_STATUS_TIMED_OUT;
+  return test_trap_last_status == G_TEST_STATUS_TIMED_OUT;
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]