mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[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:
parent
a947f3b755
commit
f48ae2195a
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user