summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2011-06-13DBusLoop: remove a layer of pointless abstraction around timeoutsSimon McVittie1-24/+4
Instead of supplying 8 tiny wrapper functions around dbus_timeout_handle, each with a user_data parameter that's a potentially unsafe borrowed pointer but isn't actually used, we can call dbus_timeout_handle directly and save a lot of trouble. One of the wrappers previously called dbus_timeout_handle repeatedly if it returned FALSE to indicate OOM, but that timeout's handler never actually returned FALSE, so there was no practical effect. The rest just ignore the return, which is documented as OK to do. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33342 Reviewed-by: Thiago Macieira <thiago@kde.org>
2011-06-10Imported Upstream version 1.5.4upstream/1.5.4Simon McVittie9-34/+1910
2011-06-10Merge branch 'dbus-1.4'Simon McVittie1-1/+1
Conflicts: NEWS configure.ac
2011-06-10fix installable tests to not install if unwantedSimon McVittie1-1/+1
2011-06-10Merge branch 'dbus-1.4'Simon McVittie8-2/+1608
2011-06-10Fix copyright datesSimon McVittie3-3/+3
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-10Test that a message with the byte order mangled causes disconnection but no ↵Simon McVittie1-0/+90
crash Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
2011-06-10marshal test: test dbus_message_demarshal_bytes_neededSimon McVittie1-0/+38
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
2011-06-10Add a test for marshalling and endian-swappingSimon McVittie3-0/+229
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
2011-06-10installcheck: don't run installed tests against installed library if in a ↵Simon McVittie1-0/+4
DESTDIR That probably won't work, because it'll find the system-wide library which might be older. 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 McVittie2-27/+14
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-10Add support for installing most of the modular testsSimon McVittie2-4/+69
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10new test for being disconnected by a corrupt message streamSimon McVittie3-0/+281
This was meant to reproduce fd.o #15578, but doesn't; the cause of that bug isn't this simple. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Test nonce-tcp transportSimon McVittie1-0/+5
Regression test for https://bugs.freedesktop.org/show_bug.cgi?id=34569 Reviewed-by: David Zeuthen <davidz@redhat.com> 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 McVittie2-2/+14
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 McVittie3-0/+329
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
2011-06-10Run integration tests on the installed dbus binaries during installcheckSimon McVittie1-1/+12
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Give the tests DBUS_TEST_DAEMON and DBUS_TEST_DATA in their environmentSimon McVittie1-0/+4
This will allow modular tests to spawn a dbus-daemon with a specified config file; nothing uses this just yet. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Attempt to reproduce fd.o #34393 via another regression testSimon McVittie3-1/+328
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10loopback test: unref messages after useSimon McVittie1-0/+4
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Add an end-to-end sanity check for TCP and Unix DBusServer/DBusConnectionSimon McVittie3-1/+220
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-01Imported Upstream version 1.5.2upstream/1.5.2Simon McVittie4-32/+31
2011-05-25Merge branch 'dbus-1.4'Simon McVittie1-0/+19
2011-05-25Check for X even if X11 autolaunching is disabledSimon McVittie1-1/+1
DBUS_ENABLE_X11_AUTOLAUNCH obviously requires DBUS_BUILD_X11. However, the converse is not true. If DBUS_BUILD_X11 is defined, dbus-launch will be able to connect to the X server to determine when the session ends; most distributors will want this, but it can be disabled with the standard Autoconf option --without-x. If DBUS_ENABLE_X11_AUTOLAUNCH is *also* defined, dbus-launch and libdbus will be willing to perform autolaunch. Again, most distributors will want this, but it can be disabled with --disable-x11-autolaunch. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19997 Reviewed-by: Colin Walters <walters@verbum.org>
2011-05-25test-autolaunch: don't expect autolaunching to work if X11 is disabledSimon McVittie1-0/+19
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19997 Reviewed-by: Colin Walters <walters@verbum.org>
2011-04-08Imported Upstream version 1.4.8upstream/1.4.8Simon McVittie3-6/+24
2011-03-14Revert merge of master (dbus-1.5) into dbus-1.4Simon McVittie1-1/+1
This reverts commits d1d395774435..09c9d6406b75f, keeping Lennart's addition of UnknownInterface etc.
2011-03-10Make dbus_type_is_valid into public APISimon McVittie1-1/+1
This is just as useful for bindings as dbus_signature_validate, and I think it's a good design principle to say that anything checked in a _dbus_return_if_fail should be something the caller could check for themselves. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=20496 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-02-17Imported Upstream version 1.4.6upstream/1.4.6Simon McVittie2-4/+0
2011-02-17Imported Upstream version 1.4.4upstream/1.4.4Simon McVittie27-3088/+120
2011-02-17Import compiler.m4 and lcov.am from telepathy-glib, and use them to replace gcovSimon McVittie2-2665/+1
Reviewed-by: Colin Walters <walters@verbum.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=10887
2011-02-02Merge branch 'dist-30285' into dbus-1.4Simon McVittie1-2/+11
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-02-02Merge branch 'serverdata-33277' into dbus-1.4Simon McVittie2-14/+72
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-02-01Don't distribute generated files that embed our builddirSimon McVittie1-2/+11
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30285
2011-01-31Imported Upstream version 1.4.1upstream/1.4.1Simon McVittie46-84/+256
2011-01-31Imported Upstream version 1.2.24upstream/1.2.24Simon McVittie133-0/+16979
2011-01-25test/name-test: remove dangling references to test-names.c, which is absentSimon McVittie1-6/+0
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-01-21test-privserver-client: wait for server to die between iterationsSimon McVittie1-14/+66
This fixes a race condition: the server exits while the client continues to the next iteration. If the server wins, the test passes. If the client wins, it sends a message to the dying service, never gets a reply, and the test fails. My branch to refactor the main loop for fd.o #23194 seems to make the client more likely to win this race, resulting in intermittent test failures. This is an instance of the general problem described by fd.o #11454.
2011-01-21test_server_shutdown: disconnect the server before causing it to be freedSimon McVittie1-0/+2
Otherwise we die with an assertion failure. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277
2011-01-21test_server_setup: allocate two server-data blobs, for watches and timeoutsSimon McVittie1-0/+4
This is similar to how ConnectionData works. Without this change, we deserve to segfault: when the first set of callbacks (either watches or timeouts) is cleaned up, we unref the server and loop, and free sd; when the second set of callbacks is cleaned up, we use-after-free sd, the server and the loop, then double-free sd. However, due to fd.o #33277 we don't even get that far, because we've already died with an assertion failure. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277
2011-01-21test_server_setup: on OOM while setting up watch/timeout, don't leak sdSimon McVittie1-2/+2
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128 Reviwed-by: Colin Walters <walters@verbum.org>
2011-01-06Add autolaunch test to .gitignoreSimon McVittie1-0/+1
2010-12-17policy tests: Use bin rather than nogroup, wheel, or rootWill Thompson1-2/+2
This group seems to exist on all of Debian, Fedora and Mac OS X. (I mistakenly believed that nogroup exists on Fedora.)
2010-12-15Revert "test-autolaunch is only known to work in launchd environments."Will Thompson1-5/+1
This reverts commit 4626b405609900812125a407ef5fdd31c7b89868. test-autolaunch works fine in non-launchd environments (and non-X11 environments, based on a quick test passing enable_x11=no to configure). On the contrary: this commit *broke* the build on non-launchd environments, because test/name-test/run-test.sh still tried to run this test even if it hadn't been built.
2010-12-15policy tests: Use 'nogroup' rather than 'wheel' or 'root'Will Thompson1-2/+2
The excellently-titled commit 197bef8 “Fix test failures on OSX.” broke the tests on Linux, since there's no wheel group on this side of the tracks. So here's a group everyone should enjoy. (If anyone comes along and tells me that DragonflyBSD doesn't have 'nogroup' …)
2010-12-04Fix test failures on OSX.Mike McQuaid1-2/+2
2010-12-04test-autolaunch is only known to work in launchd environments.Mike McQuaid1-1/+5
2010-12-04Added a test-autolaunch.Colin Walters3-1/+48
* test/name-test/test-autolaunch.c: New file, unsets DBUS_SESSION_BUS_ADDRESS so we should fall back to autolaunch:. * test/name-test/run-test.sh: Run it. * test/name-test/Makefile.am: Build it.
2010-10-05Update a load of .gitignoresWill Thompson1-2/+6