- 17 Dec, 2018 8 commits
-
-
Ralf Habacker authored
This patch introduces a new cmake macro add_session_test_executable, which uses dbus-run-session to start a dbus-daemon process with a temporary session bus in the background and the desired client file. add_session_test_executable requires additional environment variables defined in the top level CMakeLists.txt. Bug: #135Signed-off-by:
Ralf Habacker <ralf.habacker@freenet.de>
-
Ralf Habacker authored
This patch introduces a new cmake macro add_session_test_executable, which uses dbus-run-session to start a dbus-daemon process with a temporary session bus in the background and the desired client file. add_session_test_executable requires additional environment variables defined in the top level CMakeLists.txt. Bug: #135Signed-off-by:
Ralf Habacker <ralf.habacker@freenet.de>
-
Ralf Habacker authored
Bug: #135
-
Ralf Habacker authored
-
Ralf Habacker authored
Instead of the variables EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH, which have become obsolete since cmake 3.x, CMAKE_xxx_OUTPUT_PATH is now used to define output paths in the build directory.
-
Simon McVittie authored
trivial: Remove trailing whitespace from copyright notices See merge request !75 Reviewed-by: pwithnall
-
Simon McVittie authored
We don't usually mass-remove trailing whitespace from the actual source code because it would complicate cherry-picking bug fixes to older branches, but that reasoning doesn't really apply to the comments containing copyright and licensing notices. Removing trailing whitespace makes it much easier to move code around: we have a commit hook that rejects commits containing trailing whitespace, but that commit hook counts moving a file as a delete + add pair, so it objects to moving code that contains trailing whitespace. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
_dbus_threads_init_debug: Remove See merge request !72
-
- 14 Dec, 2018 16 commits
-
-
Simon McVittie authored
libdbus has been thread-safe by default since 1.7.6 (2013): dbus_threads_init_default() is called on a just-in-time basis whenever needed, and _dbus_thread_init_debug() is equivalent to that. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
trivial: Clean up .gitignore files See merge request !70 Reviewed-by: pwithnall
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Decrease the runtime of test-refs under Windows Closes #244 See merge request !65
-
Simon McVittie authored
If lists are in a completely arbitrary order, sorting them consistently means that there is only one correct place to insert a new entry, avoiding the merge conflicts that would occur if we always append new entries. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
In subdirectories we mostly only want to match at the current level, not in nested subdirectories. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Patterns in the top-level .gitignore match in all subdirectories, so there's no need to repeat ourselves quite so much for generic C, Autotools and gcov patterns. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
If lists are in a completely arbitrary order, sorting them consistently means that there is only one correct place to insert a new entry, avoiding the merge conflicts that would occur if we always append new entries. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
The anchored patterns match only in the top directory; the unanchored patterns match in any subdirectory. While I'm moving the unanchored patterns around anyway, sort them in lexicographical (LC_ALL=C sort) order. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
There shouldn't be an aclocal.m4 in any subdirectory, for instance, so there's no need to ignore it. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
We put these in build-aux/ since 15e6b4f5, and we ignore all of build-aux/, so we don't need to ignore them separately. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
test-privserver: Move helper executable out of name-test/ See merge request !67
-
Ralf Habacker authored
-
Ralf Habacker authored
If the environment variable DBUS_TEST_SLOW is not set or is 0 fewer iterations are performed in test-refs enough to demonstrate that it works, rather than seriously trying to reproduce race conditions. This solves the long runtime that Wine 3.x (4 times longer than native Windows 7) or Windows 7 as a VirtualBox 5.22 guest (10 times longer) is to be seen. Fixes #244
-
- 13 Dec, 2018 3 commits
-
-
Simon McVittie authored
This means we don't need to distinguish between DBUS_NAME_TEST_EXEC and DBUS_TEST_EXEC any more, because all test helper executables are in the same place, both during build and when installed (we don't install test-privserver since no installed test requires it yet, but in principle we could). Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
I've assumed that trivial changes from Scott James Remnant (correcting some bus names) and Marcus Brinkmann (adding a <config.h> include tree-wide) are not significant here. All the other potential copyright holders from the git log are listed, and all have given permission to relicense their dbus contributions under the MIT/X11 license. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Otherwise the commit hook would forbid commits that move it to a new location. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- 12 Dec, 2018 2 commits
-
-
Simon McVittie authored
Add AddressSanitizer and UBSan support See merge request !57 Reviewed-by: pwithnall
-
Simon McVittie authored
Don't cast user-supplied pointers to DBusBasicValue * See merge request !69 Reviewed-by: thiago
-
- 11 Dec, 2018 10 commits
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
We don't want to set these globally via the normal CFLAGS, because if we did, AddressSanitizer would catch test-segfault deliberately segfaulting, and "helpfully" turn it into exit status 1, which in turn makes our test fail because it asserts that the segfault is reported as a segfault. A typical use with gcc as compiler, on a reasonably recent Debian, would be: ./configure SANITIZE_CFLAGS="-fsanitize=address -fsanitize=undefined -fPIE -pie" Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
It's only used in test code. We have to put it in its own translation unit with no non-libc dependencies so that we can compile a copy of it without AddressSanitizer support, because in a subsequent commit we will special-case test-segfault to be compiled without using AddressSanitizer, which would make linking to an AddressSanitizer-instrumented libdbus fail. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Running tests under instrumentation (libasan) or emulation (qemu) is not fast. Inspired by the --timeout-factor option in <https://salsa.debian.org/ci-team/autopkgtest>. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
test-privserver: Don't leak the DBusServer See merge request !68
-
Simon McVittie authored
If we cast a user-supplied pointer to DBusBasicValue *, that's like promising that the pointer is to an object at least as strictly aligned as a DBusBasicValue. In practice, it often isn't: for example, when we marshal a dbus_uint32_t, a pointer to it is only guaranteed to be 32-bit-aligned, whereas DBusBasicValue typically requires 64-bit alignment. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This results in (harmless) leak reports when running under the AddressSanitizer, which could make real leaks harder to find. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Ralf Habacker authored
Autotools creates executable applications in the respective subdirectory of the build directory, while cmake creates them in <build-root>/bin. This leads to different paths in the file created from org.freedesktop.DBus.TestSuite.PrivServer.service.in, which are fixed by the new variable. Bug: #135Signed-off-by:
Ralf Habacker <ralf.habacker@freenet.de> Reviewed-by:
Simon McVittie <smcv@collabora.com>
-
Ralf Habacker authored
The test tries to connect to the session bus, not system bus. Reviewed-by:
Simon McVittie <smcv@collabora.com>
-
Ralf Habacker authored
After the merge request !22 was created, this bug was fixed in !23, the associated branch was used for local tests, but the fix was not transferred to !22. After merging !22 into the master branch and rebasing !23 to the master, this fix was lost. Reviewed-by:
Simon McVittie <smcv@collabora.com>
-
- 06 Dec, 2018 1 commit
-
-
Simon McVittie authored
Skip server oom wildcard test on Windows to avoid firewall exception request See merge request !64 Reviewed-by: smcv
-