mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-11 18:13:40 +00:00
Tests: Allow RunCMake expected result code to be a regex
This will allow the '-result.txt' files to specify a regex matching different results on different platforms.
This commit is contained in:
@@ -65,7 +65,7 @@ function(run_cmake test)
|
||||
)
|
||||
endif()
|
||||
set(msg "")
|
||||
if(NOT "${actual_result}" STREQUAL "${expect_result}")
|
||||
if(NOT "${actual_result}" MATCHES "${expect_result}")
|
||||
set(msg "${msg}Result is [${actual_result}], not [${expect_result}].\n")
|
||||
endif()
|
||||
foreach(o out err)
|
||||
|
||||
Reference in New Issue
Block a user