summaryrefslogtreecommitdiffstats
path: root/Tests/FindRuby
diff options
context:
space:
mode:
authorJulien Marrec <julien.marrec@gmail.com>2020-03-11 17:37:19 (GMT)
committerJulien Marrec <julien.marrec@gmail.com>2020-03-23 12:21:40 (GMT)
commite6699b9b59a12f6fda8f535d370453bb41f3acce (patch)
tree9ae3fc49588030c0c6ea0fc36047dcdc42f7a30f /Tests/FindRuby
parent8638c49f2a0b87c131be8f4d3147a2617938e30a (diff)
downloadCMake-e6699b9b59a12f6fda8f535d370453bb41f3acce.zip
CMake-e6699b9b59a12f6fda8f535d370453bb41f3acce.tar.gz
CMake-e6699b9b59a12f6fda8f535d370453bb41f3acce.tar.bz2
FindRuby: Validate Ruby_EXECUTABLE before accepting it
Diffstat (limited to 'Tests/FindRuby')
-rw-r--r--Tests/FindRuby/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindRuby/CMakeLists.txt b/Tests/FindRuby/CMakeLists.txt
index 193cb4f..aaab839 100644
--- a/Tests/FindRuby/CMakeLists.txt
+++ b/Tests/FindRuby/CMakeLists.txt
@@ -24,7 +24,7 @@ if(CMake_TEST_FindRuby)
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
set_tests_properties(FindRuby.Fail PROPERTIES
- PASS_REGULAR_EXPRESSION "Could NOT find Ruby: Found unsuitable version \".*\", but required is.*least \"[0-9]+\\.[0-9]+\\.[0-9]+\" \\(found .*\\)")
+ PASS_REGULAR_EXPRESSION "Could NOT find Ruby.*(Required is at least version \"[0-9]+\\.[0-9]+\\.[0-9]+\")")
# Looks for 1.9.9 EXACTLY, which unlike the "FindRuby" test above will fail on every machine
# since this version doesn't exist (ruby goes from 1.9.3 to 2.0.0)