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:
parent
a85ee8b8cf
commit
29533380ea
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue