Fix g_test_trap_reached_timeout
authorMatthias Clasen <mclasen@redhat.com>
Thu, 26 Dec 2013 04:50:37 +0000 (23:50 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jan 2014 22:59:21 +0000 (17:59 -0500)
The function was returning the opposite of what the
documentation says.

glib/gtestutils.c

index feaafa312ad6cfab4fdf6a4da1f8c5309913f241..3e079c18b50a819077fc9203315907dcdcfaa72c 100644 (file)
@@ -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