dbus/test/internals
Ralf Habacker e4feb9600e Add a trivial sanity-check for the atomic primitives
This doesn't verify that they're atomic, but does verify that they
return the right things.

This commit adds a new test function _dbus_test_check (a) to make
writing tests easier. It checks the given boolean expression and
generates a "not ok" test result if the expression is false.

Due to the current design of the test api, the test is only compiled
if embedded tests were enabled at the time of configuration.

It was also necessary to move the test_atomic target definitions in
test/Makefile.am to the --enable-embedded-tests section to avoid a
make distcheck build error.

The test case itself has been authored by smcv.

Co-authored-by: Simon McVittie <smcv@collabora.com>
2019-12-13 16:13:53 +01:00
..
address.c tests: Move address test out of libdbus 2019-07-03 11:19:19 +01:00
assertions.c Move _dbus_disable_crash_handling() back into test/ directory 2018-12-11 12:47:22 +00:00
atomic.c Add a trivial sanity-check for the atomic primitives 2019-12-13 16:13:53 +01:00
dbus-auth-script.c test: Add basic test coverage for DBUS_COOKIE_SHA1 2019-06-09 13:08:53 +01:00
dbus-auth-script.h test: Move auth, credentials tests from libdbus-internal into test/ 2019-01-21 15:20:22 +00:00
dbus-auth-util.c test: Move auth, credentials tests from libdbus-internal into test/ 2019-01-21 15:20:22 +00:00
dbus-credentials-util.c test: Move auth, credentials tests from libdbus-internal into test/ 2019-01-21 15:20:22 +00:00
dbus-marshal-byteswap-util.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-marshal-recursive-util.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-marshal-recursive-util.h test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-marshal-validate-util.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-message-factory.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-message-factory.h test: Move dbus-message-factory and most of dbus-message-util into test/ 2019-01-21 15:20:39 +00:00
dbus-message-util.c tests: Improve messages when fd leaks are diagnosed 2019-07-02 20:44:33 +01:00
dbus-message-util.h test: Move dbus-message-factory and most of dbus-message-util into test/ 2019-01-21 15:20:39 +00:00
dbus-string-util.c test: Move string tests (most of dbus-string-util.c) here 2019-01-21 15:21:43 +00:00
dbus-sysdeps-util.c test: Move sysdeps tests here 2019-01-21 15:22:05 +00:00
desktop-file.c desktop-file test: Don't leak errors 2018-11-19 11:38:11 +00:00
hash.c test: Unembed hash test from libdbus and move it into test/ 2019-01-21 15:20:06 +00:00
marshal-recursive.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
mempool.c tests: Move mempool test out of libdbus 2019-07-03 11:19:47 +01:00
message-internals.c test: Move dbus-message-factory and most of dbus-message-util into test/ 2019-01-21 15:20:39 +00:00
misc-internals.c tests: Move userdb test out of libdbus 2019-07-03 11:19:50 +01:00
misc-internals.h tests: Move mempool test out of libdbus 2019-07-03 11:19:47 +01:00
printf.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
refs.c Increase the number of references/threads to be tested under Windows by default to detect errors 2018-12-14 11:04:21 +01:00
server-oom.c Skip server oom wildcard test on Windows to avoid firewall exception request 2018-12-06 17:08:29 +01:00
sha.c tests: Move _dbus_sha_test outside libdbus 2019-07-03 11:18:49 +01:00
spawn-oom.c test-spawn-oom: Separate single spawn tests from oom related 2019-03-15 17:06:01 +00:00
sysdeps.c sysdeps test: Wait for spawned process to exit 2018-12-05 15:30:47 +01:00
syslog.c syslog test: Don't assert that we see plain LF newlines 2018-12-05 15:27:43 +01:00
variant.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00