GNOME Bugzilla – Bug 685936
gsd-test-* programs miss notify_init()
Last modified: 2012-10-11 08:40:35 UTC
I am currently writing some automatic tests ("make check" style for continous integration testing in jhbuild) for the power plugin and would like to use the rather convenient gsd-test-* programs for that. Unfortunately this does not currently work, as it fails with e. g. (lt-gsd-test-power:14506): power-plugin-DEBUG: charge-action (lt-gsd-test-power:14506): power-plugin-DEBUG: got filename: battery-missing-symbolic;gpm-battery-missing;gpm-battery-000;battery-missing; (lt-gsd-test-power:14506): libnotify-WARNING **: you must call notify_init() before showing ** libnotify:ERROR:notification.c:568:notify_notification_show: code should not be reached test-plugin.h should call notify_init(), so that the test plugin wrappers behave like the actual gnome-settings-daemon (which also calls it at start).
Created attachment 226233 [details] [review] test-plugin: Call notify_init()
Pushed to gnome-3-6 and master. Attachment 226233 [details] pushed as 7f7b720 - test-plugin: Call notify_init()
Wow, that was fast, thanks Bastien!