[glib] Use a realistic timeout in a test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Use a realistic timeout in a test
- Date: Tue, 14 Jun 2011 03:54:46 +0000 (UTC)
commit 4dc3d3e9996a3ab260385f9452eec1edaeb614d5
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 13 22:48:54 2011 -0400
Use a realistic timeout in a test
Who knew that g_test_trap_fork() takes a timeout in microseconds...
glib/tests/dataset.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/dataset.c b/glib/tests/dataset.c
index 187f53b..75a77f7 100644
--- a/glib/tests/dataset.c
+++ b/glib/tests/dataset.c
@@ -183,7 +183,7 @@ free_one (gpointer data)
static void
test_datalist_clear (void)
{
- if (g_test_trap_fork (1000, 0))
+ if (g_test_trap_fork (500000, 0))
{
g_datalist_init (&list);
g_datalist_set_data_full (&list, "one", GINT_TO_POINTER (1), free_one);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]