mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 04:28:05 +02:00
Fix up appinfo test
Make it possible to skip the terminal-launching test simply by setting DISPLAY= . Previously, you had to unset DISPLAY, which is a little more cumbersome. https://bugzilla.gnome.org/show_bug.cgi?id=711178
This commit is contained in:
parent
0fc0754e65
commit
5efc038e0d
@ -15,7 +15,7 @@ test_launch (void)
|
|||||||
const gchar *path;
|
const gchar *path;
|
||||||
gchar *uri;
|
gchar *uri;
|
||||||
|
|
||||||
if (!g_getenv ("DISPLAY"))
|
if (g_getenv ("DISPLAY") == NULL || g_getenv ("DISPLAY")[0] == '\0')
|
||||||
{
|
{
|
||||||
g_printerr ("No DISPLAY. Skipping test. ");
|
g_printerr ("No DISPLAY. Skipping test. ");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user