Created attachment 4101 [details] dbus-test ptest-runner log (with stderr output included) The reason for the failures is that dbus-test-ptest tests against the installed libdbus-1.so, which was built and installed by **different** package (I believe it was dbus-dev). Normally dbus-test would use a local libdbus-1.so and testing using this library would not create problems. Although both libraries are built from the same sources, they are configured differently. The library (and test apps) in dbus-test are configured with --enable-assert and --enable-verbose. However, the distributed/installed library was configured/built without these. So when a test app tries to issue an assert or print a (warning) message we get a segmentation fault or some import/export relocation error (see the attachement). The remedy would be to configure the dbus-test-ptest library same as dbus-dev library, or as much as possible. (For example, libdbus-test-ptest should be configured without --enable-assert and --enable-verbose) Copying and using the dbus-test-ptest library would alleviate the problems, but the purpose of the testing is to test the **installed** library, not a local copy.
*** Bug 10841 has been marked as a duplicate of this bug. ***
We can't consolidate the flags as that's the reason for the split: test flags are not suitable for performance. Maybe we need to make dbus-test statically link to the libdbus it built? (or just throw away dbus-test)
(In reply to comment #2) > We can't consolidate the flags as that's the reason for the split: test > flags are not suitable for performance. > > Maybe we need to make dbus-test statically link to the libdbus it built? > > (or just throw away dbus-test) yes, dbus-test is not good for anything in this context. There is point in testing a library that is not installed, or is installed in a way that only the test can see it. We can add some -ptest into dbus package.
http://lists.openembedded.org/pipermail/openembedded-core/2018-February/147897.html
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2d3e09949732ed48c8c9a328d9ab6ebbf6889b13