From 15179910d1e692e2a76ab057b4d3722020a98640 Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Tue, 19 Nov 2019 14:04:08 +0100 Subject: [PATCH] Write test fails to stdout/stderr even from ctest Running tests while writing failed assertions to a text file means the little information there is that causes test failures becomes pretty much inaccessible on Travis. Sending the output to stdout/stderr means it can be trivially shown for failed tests using the --output-on-failure option of ctest. Signed-off-by: Erik Boasson --- cmake/Modules/CUnit.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/CUnit.cmake b/cmake/Modules/CUnit.cmake index ac63690..7453679 100644 --- a/cmake/Modules/CUnit.cmake +++ b/cmake/Modules/CUnit.cmake @@ -274,7 +274,7 @@ function(add_cunit_executable TARGET) add_test( NAME ${ctest} - COMMAND ${TARGET} -a -r "${suite}-${test}" -s ${suite} -t ${test}) + COMMAND ${TARGET} -s ${suite} -t ${test}) set_property(TEST ${ctest} PROPERTY TIMEOUT ${timeout}) set_property(TEST ${ctest} PROPERTY DISABLED ${disabled}) if(APPLE)