diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-07-11 15:58:48 +0200 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-07-11 15:58:48 +0200 |
commit | 3890f7f5cbb8de6a19855a17f7cf412639f64f2d (patch) | |
tree | d9d81971e9400addfa1ec7c2207d8a6e21883bd5 | |
parent | ad3947c42ee4b695b8371abc8d99cadf66a92829 (diff) | |
download | glib-3890f7f5cbb8de6a19855a17f7cf412639f64f2d.tar.gz |
tests: Fix skipping of appinfo tests when DISPLAY is unset
Use g_test_skip() so that the TAP output is correct for the tests,
rather than printing using g_printerr().
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/640
-rw-r--r-- | gio/tests/appinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/tests/appinfo.c b/gio/tests/appinfo.c index ea4809d54..a52bc7094 100644 --- a/gio/tests/appinfo.c +++ b/gio/tests/appinfo.c @@ -17,7 +17,7 @@ test_launch_for_app_info (GAppInfo *appinfo) if (g_getenv ("DISPLAY") == NULL || g_getenv ("DISPLAY")[0] == '\0') { - g_printerr ("No DISPLAY. Skipping test. "); + g_test_skip ("No DISPLAY set"); return; } |