[svn-r22569] On windows read/write error reference file just like reference file before comparision. This will set the line endings.

This commit is contained in:
Allen Byrne 2012-07-13 08:58:18 -05:00
parent a947f3b755
commit f48ae2195a

View File

@ -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}