From a4020f8749e09533326d51aa767a38fdbcdd42db Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 2 Jul 2015 02:33:42 +0300 Subject: [PATCH] Redirecting test stderr to files --- libuavcan/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan/CMakeLists.txt b/libuavcan/CMakeLists.txt index cafb717fca..5058e65b55 100644 --- a/libuavcan/CMakeLists.txt +++ b/libuavcan/CMakeLists.txt @@ -93,7 +93,7 @@ function(add_libuavcan_test name library flags) # Adds GTest executable and crea # Tests run automatically upon successful build # If failing tests need to be investigated with debugger, use 'make --ignore-errors' add_custom_command(TARGET ${name} POST_BUILD - COMMAND ./${name} > "${name}.log" + COMMAND ./${name} 1>"${name}.log" 2>&1 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) endfunction()