From 9c3034f1250b4bd58c8619b0900dbf9795ad53bc Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 24 Nov 2015 01:19:55 +0000 Subject: [PATCH] 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 --- cmake/modules/Macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/Macros.cmake b/cmake/modules/Macros.cmake index fd3f62c..8d6cf11 100644 --- a/cmake/modules/Macros.cmake +++ b/cmake/modules/Macros.cmake @@ -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 $) + add_test(NAME ${_target} COMMAND $ --tap) else() set(PREFIX) set(_env "DBUS_TEST_DAEMON=${CMAKE_BINARY_DIR}/bin/dbus-daemon${EXEEXT}") - add_test(NAME ${_target} COMMAND $) + add_test(NAME ${_target} COMMAND $ --tap) endif() list(APPEND _env "DBUS_SESSION_BUS_ADDRESS=") list(APPEND _env "DBUS_FATAL_WARNINGS=1") -- 1.8.4.5