[gtk/ebassi/textbuffer-private-api: 2/2] Re-enable the TextBuffer wrap-mode serialization test




commit 6c37158bbca2df724d8eb05308fa302edc39f313
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Aug 4 23:39:54 2022 +0100

    Re-enable the TextBuffer wrap-mode serialization test
    
    The private serialization function is now available on all platforms.

 testsuite/gtk/textbuffer.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/testsuite/gtk/textbuffer.c b/testsuite/gtk/textbuffer.c
index 13e7ee1893..f500cd65f3 100644
--- a/testsuite/gtk/textbuffer.c
+++ b/testsuite/gtk/textbuffer.c
@@ -1876,15 +1876,6 @@ test_serialize_wrap_mode (void)
   g_assert_finalize_object (buffer);
 }
 
-static void
-add_unix_only_tests (void)
-{
-#ifdef G_OS_UNIX
-  /* The atspi2 code for this is not available in Windows */
-  g_test_add_func ("/TextBuffer/Serialize wrap-mode", test_serialize_wrap_mode);
-#endif
-}
-
 int
 main (int argc, char** argv)
 {
@@ -1910,8 +1901,7 @@ main (int argc, char** argv)
   g_test_add_func ("/TextBuffer/Undo 1", test_undo1);
   g_test_add_func ("/TextBuffer/Undo 2", test_undo2);
   g_test_add_func ("/TextBuffer/Undo 3", test_undo3);
-
-  add_unix_only_tests ();
+  g_test_add_func ("/TextBuffer/Serialize wrap-mode", test_serialize_wrap_mode);
 
   return g_test_run();
 }


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