projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc0754
)
Fix up appinfo test
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 24 Nov 2013 03:24:00 +0000
(22:24 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 24 Nov 2013 03:24:51 +0000
(22:24 -0500)
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
gio/tests/appinfo.c
patch
|
blob
|
history
diff --git
a/gio/tests/appinfo.c
b/gio/tests/appinfo.c
index
5f84cbd
..
e04071a
100644
(file)
--- a/
gio/tests/appinfo.c
+++ b/
gio/tests/appinfo.c
@@
-15,7
+15,7
@@
test_launch (void)
const gchar *path;
gchar *uri;
- if (
!g_getenv ("DISPLAY")
)
+ if (
g_getenv ("DISPLAY") == NULL || g_getenv ("DISPLAY")[0] == '\0'
)
{
g_printerr ("No DISPLAY. Skipping test. ");
return;