Commit 2dce48ff authored by Brad King's avatar Brad King

Fix RunCMake.Configure test expectation newline matching

Teach FailCopyFileABI-check.cmake to convert CRLF to LF in the regular
expression read literally from its own source.
parent 4dc40185
......@@ -4,10 +4,11 @@ if(EXISTS "${log}")
else()
set(error_log "")
endif()
if(NOT error_log MATCHES "Cannot copy output executable.*
string(REPLACE "\r\n" "\n" regex "Cannot copy output executable.*
to destination specified by COPY_FILE:.*
Unable to find the executable at any of:
.*\\.missing")
if(NOT error_log MATCHES "${regex}")
string(REGEX REPLACE "\n" "\n " error_log " ${error_log}")
set(RunCMake_TEST_FAILED "Log file:\n ${log}\ndoes not have expected COPY_FILE failure message:\n${error_log}")
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment