diff options
author | Benjamin Berg <bberg@redhat.com> | 2018-03-15 16:54:56 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2018-04-10 20:09:32 +0200 |
commit | 0ab5e2f1e7dae2536f06c2b48459bc870440c50a (patch) | |
tree | 8b5d777ad3bd146a224d8bbba437499038c88f6e | |
parent | 65f11717d08b312ba36a3b0ae4963e3043b8aa4c (diff) | |
download | gnome-settings-daemon-0ab5e2f1e7dae2536f06c2b48459bc870440c50a.tar.gz |
color: Remove GTK+ from the self test
The gsd-color self test does not require GTK+ to be initialized to run.
So don't call gtk_init as a display server may not be available during
test execution.
-rw-r--r-- | plugins/color/gcm-self-test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/color/gcm-self-test.c b/plugins/color/gcm-self-test.c index 3f00b601..bc34bfb9 100644 --- a/plugins/color/gcm-self-test.c +++ b/plugins/color/gcm-self-test.c @@ -23,7 +23,6 @@ #include <glib-object.h> #include <stdlib.h> -#include <gtk/gtk.h> #include "gcm-edid.h" #include "gsd-color-state.h" @@ -285,7 +284,6 @@ main (int argc, char **argv) g_setenv ("GSETTINGS_BACKEND", "memory", TRUE); - gtk_init (&argc, &argv); g_test_init (&argc, &argv, NULL); schema_dir = g_test_build_filename (G_TEST_BUILT, "", NULL); |