summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_ext_cmake_builder.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_ext_cmake_builder.rb b/test/rubygems/test_gem_ext_cmake_builder.rb
index 6d4c6708f4..4af7de0da8 100644
--- a/test/rubygems/test_gem_ext_cmake_builder.rb
+++ b/test/rubygems/test_gem_ext_cmake_builder.rb
@@ -10,9 +10,11 @@ class TestGemExtCmakeBuilder < Gem::TestCase
# Details: https://github.com/rubygems/rubygems/issues/1270#issuecomment-177368340
skip "CmakeBuilder doesn't work on Windows." if Gem.win_platform?
- _, status = Open3.capture2e('cmake')
-
- skip 'cmake not present' unless status.success?
+ begin
+ _, status = Open3.capture2e('cmake')
+ rescue Errno::ENOENT
+ skip 'cmake not present'
+ end
@ext = File.join @tempdir, 'ext'
@dest_path = File.join @tempdir, 'prefix'