Make the wrap_mode test unix-only

The relevant accessibility code is not built on Windows.
This commit is contained in:
Federico Mena Quintero
2022-04-28 09:46:20 -05:00
parent 898a2e9fcf
commit 4ddf1b70a2

View 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();
}