mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 16:58:00 +02:00
cmake: run all automated tests with --tap for better diagnostics
For GLib-based tests it's useful, because it means g_test_message() gets logged. For the embedded tests it's now accepted and ignored. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93194 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
This commit is contained in:
parent
ae533ae9b9
commit
085f9348a1
1 changed files with 2 additions and 2 deletions
|
|
@ -43,11 +43,11 @@ macro(add_test_executable _target _source)
|
|||
# run tests with binfmt_misc
|
||||
set(PREFIX "z:")
|
||||
set(_env "DBUS_TEST_DAEMON=${PREFIX}${CMAKE_BINARY_DIR}/bin/dbus-daemon${EXEEXT}")
|
||||
add_test(NAME ${_target} COMMAND $<TARGET_FILE:${_target}>)
|
||||
add_test(NAME ${_target} COMMAND $<TARGET_FILE:${_target}> --tap)
|
||||
else()
|
||||
set(PREFIX)
|
||||
set(_env "DBUS_TEST_DAEMON=${CMAKE_BINARY_DIR}/bin/dbus-daemon${EXEEXT}")
|
||||
add_test(NAME ${_target} COMMAND $<TARGET_FILE:${_target}>)
|
||||
add_test(NAME ${_target} COMMAND $<TARGET_FILE:${_target}> --tap)
|
||||
endif()
|
||||
list(APPEND _env "DBUS_SESSION_BUS_ADDRESS=")
|
||||
list(APPEND _env "DBUS_FATAL_WARNINGS=1")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue