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()
|
endif()
|
||||||
set(msg "")
|
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")
|
set(msg "${msg}Result is [${actual_result}], not [${expect_result}].\n")
|
||||||
endif()
|
endif()
|
||||||
foreach(o out err)
|
foreach(o out err)
|
||||||
|
|
Loading…
Reference in New Issue