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:
Brad King 2014-12-16 13:33:47 -05:00
parent a85ee8b8cf
commit 29533380ea
1 changed files with 1 additions and 1 deletions

View File

@ -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)