1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/rubygems/test_gem_ext_cmake_builder.rb: make sure cmake available

just for a case.  In addition, this change suppresses unused variable
warning.
This commit is contained in:
Yusuke Endoh 2020-05-10 14:18:25 +09:00
parent 889b0fe46f
commit 3bf0d2bb92

View file

@ -12,6 +12,7 @@ class TestGemExtCmakeBuilder < Gem::TestCase
begin
_, status = Open3.capture2e('cmake')
skip 'cmake not present' unless status.success?
rescue Errno::ENOENT
skip 'cmake not present'
end