From f18390ee797925b948e0f842aa9ecc1362679734 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 18 Nov 2013 17:11:19 -0500 Subject: [PATCH] Unit Tests - Finally fixed an age-old bug in unit tests. The bug was that whenever a test output contained '*', shell globbing expanded that to a list of all test files. Even though it was simply diagnostic output text. --- test/CMakeLists.txt | 4 ++-- test/run_all.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ce25cbe97..72d925d13 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -31,8 +31,8 @@ endif (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) configure_file (run_all.in run_all) add_custom_target (test ./run_all --verbose - DEPENDS ${test_SRCS} task_executable - WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test) + DEPENDS ${test_SRCS} task_executable + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test) add_custom_target (build_tests DEPENDS ${test_SRCS} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test) diff --git a/test/run_all.in b/test/run_all.in index 2157a6a66..25ac62f44 100755 --- a/test/run_all.in +++ b/test/run_all.in @@ -8,7 +8,7 @@ then $i > test.log 2>&1 while read LINE do - echo $LINE + echo "$LINE" done < test.log rm test.log done