GNOME Bugzilla – Bug 731464
Fail to run EDS tests
Last modified: 2014-06-12 07:48:56 UTC
I am unable to run eds tests, all tests get freeze during the startup.
Some logs: renato@ubuntu:~/Projects/phablet/labs/folks/tests/eds$ make -C . im-details.gdb make: Entering directory '/home/renato/Projects/phablet/labs/folks/tests/eds' \ /bin/bash ../../libtool --mode=execute \ gdb im-details GNU gdb (Ubuntu 7.7.1-0ubuntu2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/renato/Projects/phablet/labs/folks/tests/eds/.libs/lt-im-details...done. (gdb) r Starting program: /home/renato/Projects/phablet/labs/folks/tests/eds/.libs/lt-im-details [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ** (/home/renato/Projects/phablet/labs/folks/tests/eds/.libs/lt-im-details:24159): DEBUG: test-case.vala:138: setting up in transient directory /tmp/folks-test.OuD6Az Unable to reload configuration: Failed to open "/tmp/g-test-dbus-E8G5GX": No such file or directory Unable to reload configuration: Failed to open "/tmp/g-test-dbus-E8G5GX": No such file or directory Unable to reload configuration: Failed to open "/tmp/g-test-dbus-E8G5GX": No such file or directory Unable to reload configuration: Failed to open "/tmp/g-test-dbus-E8G5GX": No such file or directory /ImDetailsTests/test im details interface: Unable to reload configuration: Failed to open "/tmp/g-test-dbus-E8G5GX": No such file or directory Unable to reload configuration: Failed to open "/tmp/g-test-dbus-E8G5GX": No such file or directory [New Thread 0x7fffef73d700 (LWP 24169)] [New Thread 0x7fffeef3c700 (LWP 24170)] [New Thread 0x7fffee73b700 (LWP 24171)] [Thread 0x7fffef73d700 (LWP 24169) exited]
This change make the test run: diff --git a/tests/lib/eds/test-case.vala b/tests/lib/eds/test-case.vala index 8979b64..45923dd 100644 --- a/tests/lib/eds/test-case.vala +++ b/tests/lib/eds/test-case.vala @@ -120,7 +120,7 @@ public class EdsTest.TestCase : Folks.TestCase Path.build_filename (this.transient_dir, "dbus-1", "services", "evolution-source-registry-3-8.service"); service_file = ("[D-BUS Service]\n" + - "Name=org.gnome.evolution.dataserver.Sources1\n" + + "Name=org.gnome.evolution.dataserver.Sources2\n" + "Exec=%s/evolution-source-registry\n").printf (libexec); But after change that I start the get this error on test log files: Starting program: /home/renato/Projects/phablet/labs/folks/tests/eds/.libs/lt-im-details [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ** (/home/renato/Projects/phablet/labs/folks/tests/eds/.libs/lt-im-details:11232): DEBUG: test-case.vala:138: setting up in transient directory /tmp/folks-test.aTSkg5 signal sender=org.freedesktop.DBus -> dest=:1.0 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.0" method call sender=:1.0 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "eavesdrop=true,type='method_call'" method call sender=:1.0 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "eavesdrop=true,type='method_return'" method call sender=:1.0 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "eavesdrop=true,type='error'" signal sender=org.freedesktop.DBus -> dest=:1.0 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.0" method call sender=:1.0 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "eavesdrop=true,type='method_call'" method call sender=:1.0 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "eavesdrop=true,type='method_return'" method call sender=:1.0 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "eavesdrop=true,type='error'" /ImDetailsTests/test im details interface: Reloaded configuration Reloaded configuration Reloaded configuration [New Thread 0x7fffef73d700 (LWP 11246)] [New Thread 0x7fffeef3c700 (LWP 11247)] [New Thread 0x7fffee73b700 (LWP 11248)] signal sender=org.freedesktop.DBus -> dest=(null destination) serial=7 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.1" string "" string ":1.1" method call sender=:1.1 -> dest=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello method call sender=:1.1 -> dest=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender='org.gnome.evolution.dataserver.Sources2',interface='org.freedesktop.DBus.ObjectManager',path='/org/gnome/evolution/dataserver/SourceManager'" Activating service name='org.gnome.evolution.dataserver.Sources2'method call sender=:1.1 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',path='/org/freedesktop/DBus',arg0='org.gnome.evolution.dataserver.Sources2'" method call sender=:1.1 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName string "org.gnome.evolution.dataserver.Sources2" uint32 0 Activated service 'org.gnome.evolution.dataserver.Sources2' failed: Process /usr/lib/evolution/evolution-source-registry received signal 13 ** (/home/renato/Projects/phablet/labs/folks/tests/eds/.libs/lt-im-details:11232): CRITICAL **: backend.vala:139: Error calling StartServiceByName for org.gnome.evolution.dataserver.Sources2: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/lib/evolution/evolution-source-registry received signal 13 signal sender=org.freedesktop.DBus -> dest=(null destination) serial=8 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged string ":1.1" string ":1.1" string "" Program received signal SIGTRAP, Trace/breakpoint trap. g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffd818) at /build/buildd/glib2.0-2.41.0/./glib/gmessages.c:1038 1038 /build/buildd/glib2.0-2.41.0/./glib/gmessages.c: No such file or directory. (gdb) q A debugging session is active. Inferior 1 [process 11232] will be killed. Quit anyway? (y or n) y cleaning up pid 11237 cleaning up pid 11242 signal sender=(null sender) -> dest=(null destination) serial=0 path=/org/freedesktop/DBus/Local; interface=org.freedesktop.DBus.Local; member=Disconnected signal sender=(null sender) -> dest=(null destination) serial=0 path=/org/freedesktop/DBus/Local; interface=org.freedesktop.DBus.Local; member=Disconnected make: Leaving directory '/home/renato/Projects/phablet/labs/folks/tests/eds'
Created attachment 278316 [details] [review] tests: Add a missing D-Bus service file for EDS source registry We were missing v2 of the source file, causing the EDS tests to all fail with certain versions of EDS.
Attachment 278316 [details] pushed as 1f667e3 - tests: Add a missing D-Bus service file for EDS source registry
(In reply to comment #2) > This change make the test run: > > diff --git a/tests/lib/eds/test-case.vala b/tests/lib/eds/test-case.vala > index 8979b64..45923dd 100644 > --- a/tests/lib/eds/test-case.vala > +++ b/tests/lib/eds/test-case.vala > @@ -120,7 +120,7 @@ public class EdsTest.TestCase : Folks.TestCase > Path.build_filename (this.transient_dir, "dbus-1", "services", > "evolution-source-registry-3-8.service"); > service_file = ("[D-BUS Service]\n" + > - "Name=org.gnome.evolution.dataserver.Sources1\n" + > + "Name=org.gnome.evolution.dataserver.Sources2\n" + > "Exec=%s/evolution-source-registry\n").printf (libexec); Good spot. You were running the tests against a version of EDS which nobody has run them against before. I've pushed a fix; let me know if it still doesn't work. > But after change that I start the get this error on test log files: *snip* > Activated service 'org.gnome.evolution.dataserver.Sources2' failed: Process > /usr/lib/evolution/evolution-source-registry received signal 13 Looks like EDS is crashing on startup. This might be due to running it in the folks build environment where you have library versions it wasn't compiled against. I suggest you create a wrapper script around evolution-source-registry which dumps its output to a log file and see what's in there. I don't think this is a folks bug though.