GNOME Bugzilla – Bug 710092
tracker-dbus tests depends on having G_MESSAGES_DEBUG set
Last modified: 2013-10-14 13:31:47 UTC
$ cd tests/libtracker-common $ ./tracker-dbus /libtracker-common/tracker-dbus/slist_to_strv_ok: OK /libtracker-common/tracker-dbus/request: ** Tracker:ERROR:tracker-dbus-test.c:131:test_dbus_request: stdout of child process (12948) failed to match: *TestNewOK* Aborted (core dumped) $ G_MESSAGES_DEBUG=all ./tracker-dbus /libtracker-common/tracker-dbus/slist_to_strv_ok: OK /libtracker-common/tracker-dbus/request: Tracker-DEBUG: <--- [1|0] Test request (--TestNewOK--)) OK /libtracker-common/tracker-dbus/request_failed: Tracker-DEBUG: <--- [2|0] test_dbus_request_failed() OK By default, g_debug() messages don't go to stdout, unless requested with G_MESSAGES_DEBUG. Patch following.
Created attachment 257244 [details] [review] Patch Setup a default log handler for every forked child. I find this cleaner than setting up one for the parent process, as then we would have debug logs from the parent being dumped.
Comment on attachment 257244 [details] [review] Patch Thanks for the patch Aleksander, will help a lot!