summaryrefslogtreecommitdiff
path: root/test/dbus-daemon.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-01Add a regression test for path-based UpdateActivationEnvironment hardeningSimon McVittie1-0/+87
Reviewed-by: Thiago Macieira <thiago@kde.org>
2014-04-30Handle 0x0d0a EOLs in spawn_dbus_daemon()Руслан Ижбулатов1-0/+2
On W32 dbus daemon will print output in text mode, with 0x0d0a EOLs instead of just 0x0a. Be able to handle that. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75863 Reviewed-by: Simon McVittie
2014-01-07test/dbus-daemon, test/dbus-daemon-eavesdrop: allow external dbus-daemonSimon McVittie1-1/+16
It's easier to automate these tests if they launch their own dbus-daemon, but easier to debug them if they don't: you can launch a dbus-daemon separately, under gdb. However, tests that need a specially-configured dbus-daemon will have to be skipped. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
2013-09-03Tests: allow dbus-glib to be replaced with use of libdbus-internalSimon McVittie1-7/+14
We only use dbus-glib for its main loop; within dbus, DBusLoop is available as an alternative, although it isn't thread-safe and isn't public API. For tests that otherwise only use libdbus public API, it's desirable to be able to avoid DBusLoop, so we can run them against an installed libdbus as an integration test. However, if we don't have dbus-glib, we're going to have to use an in-tree main loop, which might as well be DBusLoop. The major disadvantage of using dbus-glib is that it isn't safe to link both dbus-1 and dbus-internal at the same time. This is awkward for a future test case that wants to use _dbus_getsid() in dbus-daemon.c, but only on Windows (fd.o #54445). If we use the same API wrapper around both dbus-glib and DBusLoop, we can compile that test against dbus-glib or against DBusLoop, depending on the platform. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
2013-08-22GetConnectionCredentials: addSimon McVittie1-0/+127
The initial set of credentials is just UnixUserID and ProcessID. The rest can follow when someone is sufficiently interested to actually test them. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54445 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de> [rename a function that Ralf found unclear -smcv] Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-08-12Merge branch 'dbus-1.4'Simon McVittie1-2/+3
2011-08-12Fix compiler warnings when cross-compiling dbus-daemon test for mingw32Simon McVittie1-2/+3
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40003 Reviewed-by: Colin Walters <walters@verbum.org>
2011-08-05Remove various never-used variablesSimon McVittie1-2/+0
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-07-28Add a regression test that can reproduce fd.o #34393Simon McVittie1-16/+59
The number of messages is arbitrary; the more messages, the more likely the crash is. 2000 messages seem to cause it reliably on this laptop, but I've set it to 10000 to be safe. Reviewed-by: Colin Walters <walters@verbum.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34393
2011-06-10Fix copyright datesSimon McVittie1-1/+1
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Use DBUS_TIMEOUT_INFINITE in dbus-daemon.cSimon McVittie1-2/+3
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Alter test-dbus-daemon so it tests the installed dbus-daemon by defaultSimon McVittie1-17/+12
For installcheck, adjust it to use things from DESTDIR. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10dbus-daemon test: sanity-check the just-installed config file when using DESTDIRSimon McVittie1-1/+11
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Add a simple integration test for dbus-daemonSimon McVittie1-0/+320
This just pushes 2000 messages (or 100000 in performance-testing mode) through the dbus-daemon, to an echo service and back. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570