[glib] Fix g_test_trap_reached_timeout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix g_test_trap_reached_timeout
- Date: Wed, 1 Jan 2014 23:02:22 +0000 (UTC)
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]