Merge branch 'fix-tests' into 'master'

Use headless init functions to prevent test breakage

See merge request Librem5/squeekboard!109
This commit is contained in:
Dorota Czaplejewicz
2019-08-01 17:08:24 +00:00
4 changed files with 4 additions and 4 deletions

View File

@ -28,4 +28,4 @@ test:
dependencies:
- build_meson
script:
- xvfb-run -s -noreset ninja -C _build test
- ninja -C _build test

View File

@ -41,7 +41,7 @@ test_create (void)
int
main (int argc, char **argv)
{
gtk_test_init (&argc, &argv, NULL);
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/eek-simple-test/create", test_create);
return g_test_run ();
}

View File

@ -47,7 +47,7 @@ test_output_parse (void)
int
main (int argc, char **argv)
{
gtk_test_init (&argc, &argv, NULL);
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/eek-xml-test/output-parse", test_output_parse);

View File

@ -64,7 +64,7 @@ test_check_xkb (void)
int
main (int argc, char **argv)
{
gtk_test_init (&argc, &argv, NULL);
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/test-keymap-generation/check-xkb", test_check_xkb);