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:
parent
889b0fe46f
commit
3bf0d2bb92
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ class TestGemExtCmakeBuilder < Gem::TestCase
|
||||||
|
|
||||||
begin
|
begin
|
||||||
_, status = Open3.capture2e('cmake')
|
_, status = Open3.capture2e('cmake')
|
||||||
|
skip 'cmake not present' unless status.success?
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
skip 'cmake not present'
|
skip 'cmake not present'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue