From 67595f36141ba37f21ac697cf2231b1afefdb25a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 1 May 2013 22:20:58 -0400 Subject: [PATCH] Reenable display manager tests Still broken, but they test the right thing. --- gdk/tests/display.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gdk/tests/display.c b/gdk/tests/display.c index c9bc112cbe..b4f64acfe3 100644 --- a/gdk/tests/display.c +++ b/gdk/tests/display.c @@ -2,11 +2,10 @@ #include -#if 0 static void test_unset_display (void) { - if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR)) + if (g_test_trap_fork (0, 0))//G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR)) { GdkDisplayManager *manager; @@ -62,17 +61,14 @@ test_bad_display (void) g_test_trap_assert_failed (); g_test_trap_assert_stderr ("*cannot open display*"); } -#endif int main (int argc, char *argv[]) { g_test_init (&argc, &argv, NULL); -#if 0 g_test_add_func ("/display/unset-display", test_unset_display); g_test_add_func ("/display/bad-display", test_bad_display); -#endif return g_test_run (); }