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 <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-11-19 14:04:08 +01:00 committed by eboasson
parent 8cbd67c32b
commit 15179910d1

View file

@ -274,7 +274,7 @@ function(add_cunit_executable TARGET)
add_test( add_test(
NAME ${ctest} 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 TIMEOUT ${timeout})
set_property(TEST ${ctest} PROPERTY DISABLED ${disabled}) set_property(TEST ${ctest} PROPERTY DISABLED ${disabled})
if(APPLE) if(APPLE)