From: Matthias Clasen Date: Thu, 26 Dec 2013 04:50:37 +0000 (-0500) Subject: Fix g_test_trap_reached_timeout X-Git-Tag: 2.39.3~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3343bc3385c54f9098869103a7817a71a7e05ca7;p=platform%2Fupstream%2Fglib.git Fix g_test_trap_reached_timeout The function was returning the opposite of what the documentation says. --- diff --git a/glib/gtestutils.c b/glib/gtestutils.c index feaafa312..3e079c18b 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