Commit c60ea284 authored by Christoph Reiter's avatar Christoph Reiter 🐍

testsuite/a11y: Fix missing glib schemas

The a11y tests complain that org.gtk.Settings schemas are missing
and fail. This copies the code to build and include the schemas from
the reftests testsuite.
parent 238239c0
......@@ -101,6 +101,22 @@ test_in_files = \
EXTRA_DIST += $(test_in_files) $(testdata)
$(top_srcdir)/gtk/org.gtk.Settings.ColorChooser.gschema.xml \
$(top_srcdir)/gtk/org.gtk.Settings.FileChooser.gschema.xml \
gschemas.compiled: $(GTK_GSETTINGS_SCHEMAS)
$(addprefix --schema-file=,$(GTK_GSETTINGS_SCHEMAS)) \
BUILT_SOURCES = gschemas.compiled
CLEANFILES = gschemas.compiled
all-am: gschemas.compiled
......@@ -858,6 +858,7 @@ parse_command_line (int *argc, char ***argv)
GError *error = NULL;
GOptionContext *context;
gchar *schema_dir;
context = g_option_context_new ("- run GTK accessibility tests");
g_option_context_add_main_entries (context, test_args, NULL);
......@@ -871,6 +872,10 @@ parse_command_line (int *argc, char ***argv)
gtk_test_init (argc, argv);
schema_dir = g_test_build_filename (G_TEST_BUILT, "", NULL);
g_setenv ("GSETTINGS_SCHEMA_DIR", schema_dir, TRUE);
g_free (schema_dir);
/* gtk_test_init does not call setlocale(), so do it ourselves,
* since running in the C locale breaks some our fancy
* utf8 output.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment