Browse Source

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.
Brad King 11 years ago
parent
commit
29533380ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/RunCMake/RunCMake.cmake

+ 1 - 1
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)