GNOME Bugzilla – Bug 711099
gapplication test failure
Last modified: 2013-11-07 18:51:54 UTC
This is 100% reproducible here (glib git master on otherwise F19 system). $ ./gapplication /gapplication/no-dbus: OK /gapplication/basic: GDBus.Error:org.freedesktop.DBus.Error.NotSupported: Application does not handle command line arguments (/home/chpe/source/git/glib/gio/tests/.libs/lt-gapplication:20222): GLib-GIO-ERROR **: Expected ----- 40 + 2 = 42 exit status: 42 ----- Got (full) ----- exit status: 1 ----- cleaning up pid 20238 Adding some debug output to basic-application.c reveals that for the 3rd spawn() in gapplicaton.c:basic() test, the output received from the child in child_quit() is the output of the 2nd spawn() invocation in basic().
Created attachment 258487 [details] [review] GApplication: fix bogus testcase We had a GApplication testcase that handled both open and commandline. This only way that this worked was by implementing the commandline handler without actually setting the HANDLES_COMMAND_LINE flag. This behaviour is now invalid, so just rip out the offending part of the test.
The patch fixes the test failure, thanks :-)
Attachment 258487 [details] pushed as ffbf866 - GApplication: fix bogus testcase