After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689369 - Multiple problems with gio/tests/appinfo.c test
Multiple problems with gio/tests/appinfo.c test
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-11-30 18:01 UTC by David Zeuthen (not reading bugmail)
Modified: 2018-05-24 14:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Zeuthen (not reading bugmail) 2012-11-30 18:01:12 UTC
When running the gio/tests/appinfo test an X11 window is shown, then it flickers and then it disappears. This is not OK to do. The test also seems to fail with

 GLib-GIO:ERROR:appinfo-test.c:11:main: assertion failed: (envvar != NULL)

but I'm not sure if this is related. Either way, tip of tree should never ever fail.

Also, when running the test with DISPLAY unset it fails with this error

** (gnome-terminal:3213): WARNING **: Could not open X display

** (gnome-terminal:3215): WARNING **: Could not open X display
Failed to parse arguments: Cannot open display: 
Failed to parse arguments: Cannot open display: 
Failed to parse arguments: Cannot open display: 
Failed to parse arguments: Cannot open display:
Comment 1 Martin Pitt 2013-01-15 15:32:35 UTC
The test works for me when I just run it under my running session. However, I can reproduce this with xvfb:

  $ DISPLAY= jhbuild run xvfb-run ./appinfo
  [...]
  GLib-GIO:ERROR:appinfo-test.c:11:main: assertion failed: (envvar != NULL)

That's also the only currently failing test in our automated jhbuild:

  https://jenkins.qa.ubuntu.com/view/Raring/view/JHBuild%20Gnome/job/jhbuild-amd64-glib/
Comment 2 Martin Pitt 2013-01-15 15:35:44 UTC
This is

  envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID");

This is supposed to be set by g_app_info_launch(), but where does that actually get called? the g_getenv() is the very first thing in the test.
Comment 3 Martin Pitt 2013-01-15 15:38:47 UTC
(In reply to comment #1)
> The test works for me when I just run it under my running session. However, I
> can reproduce this with xvfb:
> 
>   $ DISPLAY= jhbuild run xvfb-run ./appinfo

Sorry, that's ./appinfo-test of course, and it fails just as well in an already running environment (no jhbuild, no xvfb, etc.).
Comment 4 Martin Pitt 2013-01-16 08:22:56 UTC
Please ignore my previous two comments. ./appinfo-test is not a test case, it is being called from ./appinfo.

I think the "assertion failed: (envvar != NULL)" is a red herring here, as that isn't what is making the test case fail. It should still be fixed, of course.

The test case starts to succeed if I install xterm into the test environment, as that test needs some terminal installed. So this might actually be a duplicate of bug 684690, but we might keep this for the "$GIO_LAUNCHED_DESKTOP_FILE_PID is not set" issue?
Comment 5 GNOME Infrastructure Team 2018-05-24 14:52:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/640.