-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A couple of test tweaks #350
Conversation
get_pkgconfig_variable() was deprecated in 0.56.0. test/dbus/meson.build:76: WARNING: Project targets '>=0.60.0' but uses feature deprecated since '0.56.0': dependency.get_pkgconfig_variable. use dependency.get_variable(pkgconfig : ...) instead
Newer meson doesn't like colons in test names: test/dbus/meson.build:78: DEPRECATION: ":" is not allowed in test name "dbus-daemon(1): Connection", it has been replaced with "_" test/dbus/meson.build:79: DEPRECATION: ":" is not allowed in test name "dbus-daemon(1): Message passing", it has been replaced with "_" ... Let's instead separate the reference tests/benchmarks into their own suite. This also makes running just the reference tests easier by using meson test's --suite= argument: $ meson test -C build --list --suite 'dbus-daemon(1)' dbus-broker:dbus-daemon(1) / Broker API dbus-broker:dbus-daemon(1) / Driver API dbus-broker:dbus-daemon(1) / FD Stream Constraints dbus-broker:dbus-daemon(1) / Client Lifetime dbus-broker:dbus-daemon(1) / Signals and Matches
dbus-daemon v1.15.2 switched from using abstract sockets to path-based sockets. Let's tweak the reference tests to support both cases.
Thanks for this @mrc0mmand ! Do you have any idea if the remaining failure is a regression (I assume so, but have not tested this manually in a very long time)? @smcv do you happen to know if this is expected? |
dbus-daemon 1.14.10 should be able to implement The fact that you're also not seeing a |
I did some more testing and can reproduce it even with dbus-daemon-1.15.8-1.fc41.x86_64 (after building it locally, with SELinux in permissive mode):
But the same stuff happens on Arch Linux, again after switching from dbus-broker to dbus-daemon (here the lack of
With dbus-broker I get:
|
This gets rid of two meson deprecation warnings and also makes most (*) of the reference tests work with newer dbus-daemon (F39 and Rawhide), that started using path-based sockets instead of abstract ones.
(*)
The last test fails in this test case:
dbus-broker/test/dbus/test-driver.c
Lines 1742 to 1754 in db8f3ca
because there's no
UnixGroupIDs
sent back. I can reproduce this on latest Fedora Rawhide if I switch from dbus-broker to dbus-daemon and issue the D-Bus call directly:Doing the same with dbus-broker seems to return "expected" results:
I'm not sure if this is a bug or not (or at least I couldn't find anything obvious in dbus-daemon's release notes, apart from maybe this bugfix that's in v1.15.8).