From 29533380ea887e3f5eab44260bbd77933cf91ca9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Dec 2014 13:33:47 -0500 Subject: 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. --- Tests/RunCMake/RunCMake.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12