diff options
author | Brad King <brad.king@kitware.com> | 2014-12-16 18:33:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-16 18:34:34 (GMT) |
commit | 29533380ea887e3f5eab44260bbd77933cf91ca9 (patch) | |
tree | c0e16ca797732ce80195827a76b9d0ab17ab81b5 /Tests | |
parent | a85ee8b8cf4fb4be5f5ebd6e88e2753d1ec654ae (diff) | |
download | CMake-29533380ea887e3f5eab44260bbd77933cf91ca9.zip CMake-29533380ea887e3f5eab44260bbd77933cf91ca9.tar.gz CMake-29533380ea887e3f5eab44260bbd77933cf91ca9.tar.bz2 |
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.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/RunCMake.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index 56d69c8..7b1a5b2 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -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) |