diff options
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/runTest.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/cmake/runTest.cmake b/config/cmake/runTest.cmake index 40a72f1..d0cc335 100644 --- a/config/cmake/runTest.cmake +++ b/config/cmake/runTest.cmake @@ -121,6 +121,11 @@ IF (NOT TEST_SKIP_COMPARE) ENDIF (NOT ${TEST_RESULT} STREQUAL 0) IF (TEST_ERRREF) + IF (WIN32 AND NOT MINGW) + FILE (READ ${TEST_FOLDER}/${TEST_REFERENCE}.err TEST_STREAM) + FILE (WRITE ${TEST_FOLDER}/${TEST_REFERENCE}.err "${TEST_STREAM}") + ENDIF (WIN32 AND NOT MINGW) + # now compare the error output with the error reference EXECUTE_PROCESS ( COMMAND ${CMAKE_COMMAND} -E compare_files ${TEST_FOLDER}/${TEST_OUTPUT}.err ${TEST_FOLDER}/${TEST_ERRREF} |