From f48ae2195a01583710eac3b439d7a862cfba2eef Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Fri, 13 Jul 2012 08:58:18 -0500 Subject: [svn-r22569] On windows read/write error reference file just like reference file before comparision. This will set the line endings. --- config/cmake/runTest.cmake | 5 +++++ 1 file changed, 5 insertions(+) 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} -- cgit v0.12