Make the wrap_mode test unix-only
authorFederico Mena Quintero <federico@gnome.org>
Thu, 28 Apr 2022 14:46:20 +0000 (09:46 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Thu, 28 Apr 2022 14:46:48 +0000 (09:46 -0500)
The relevant accessibility code is not built on Windows.

testsuite/gtk/textbuffer.c

index 833539cc3562433c7ff2e7ef3de0e844cc96008b..d1c2997c4fd902faa08bf005b760fbbbcf72c1e0 100644 (file)
@@ -1876,6 +1876,15 @@ 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)
 {
@@ -1901,7 +1910,8 @@ 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);
-  g_test_add_func ("/TextBuffer/Serialize wrap-mode", test_serialize_wrap_mode);
+
+  add_unix_only_tests ();
 
   return g_test_run();
 }