[gtksourceview/wip/maintenance-work: 2/3] test-buffer: don't use g_test_trap_fork (deprecated)



commit 7817ce1007f9bb19e3580b94fe4e3cfc68c90d61
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jun 28 14:45:05 2013 +0200

    test-buffer: don't use g_test_trap_fork (deprecated)
    
    g_test_trap_fork() was actually not needed in this case, since the test
    must succeed. g_test_trap_fork() is useful when we know that a test
    should fail.

 tests/test-buffer.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/tests/test-buffer.c b/tests/test-buffer.c
index d5364be..f4dd764 100644
--- a/tests/test-buffer.c
+++ b/tests/test-buffer.c
@@ -24,12 +24,7 @@ test_get_buffer (void)
         * destroyed, which causes assertion failure in GtkTextView's finalize ()
         * function.
         * Please see: https://bugzilla.gnome.org/show_bug.cgi?id=634510 */
-       if (g_test_trap_fork (0, 0))
-       {
-               g_object_unref (view);
-               exit (EXIT_SUCCESS);
-       }
-       g_test_trap_assert_passed ();
+       g_object_unref (view);
 }
 
 int


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]