summaryrefslogtreecommitdiff
path: root/Tests/FindRuby
diff options
context:
space:
mode:
authorJulien Marrec <julien.marrec@gmail.com>2020-03-11 18:37:19 +0100
committerJulien Marrec <julien.marrec@gmail.com>2020-03-23 13:21:40 +0100
commite6699b9b59a12f6fda8f535d370453bb41f3acce (patch)
tree9ae3fc49588030c0c6ea0fc36047dcdc42f7a30f /Tests/FindRuby
parent8638c49f2a0b87c131be8f4d3147a2617938e30a (diff)
downloadcmake-e6699b9b59a12f6fda8f535d370453bb41f3acce.tar.gz
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 193cb4f015..aaab839e41 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)