tests: Fix the textbuffer tests

Don't needlessly open a display before gtk_init.
This commit is contained in:
Matthias Clasen
2024-10-21 12:29:19 -04:00
parent 31683469c1
commit 66367bf5d9

View File

@@ -1924,11 +1924,11 @@ test_serialize_wrap_mode (void)
int
main (int argc, char** argv)
{
/* First, we turn on btree debugging. */
gtk_set_debug_flags (gtk_get_debug_flags () | GTK_DEBUG_TEXT);
gtk_test_init (&argc, &argv);
/* Turn on btree debugging */
gtk_set_debug_flags (gtk_get_debug_flags () | GTK_DEBUG_TEXT);
g_test_add_func ("/TextBuffer/UTF8 unknown char", test_utf8);
g_test_add_func ("/TextBuffer/Line separator", test_line_separator);
g_test_add_func ("/TextBuffer/Backspace", test_backspace);