[前][次][番号順一覧][スレッド一覧]

ruby-changes:61170

From: Yusuke <ko1@a...>
Date: Sun, 10 May 2020 14:19:56 +0900 (JST)
Subject: [ruby-changes:61170] 3bf0d2bb92 (master): test/rubygems/test_gem_ext_cmake_builder.rb: make sure cmake available

https://git.ruby-lang.org/ruby.git/commit/?id=3bf0d2bb92

From 3bf0d2bb9288dff8879dedc1f1a26ff8bede2cbb Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sun, 10 May 2020 14:18:25 +0900
Subject: test/rubygems/test_gem_ext_cmake_builder.rb: make sure cmake
 available

just for a case.  In addition, this change suppresses unused variable
warning.

diff --git a/test/rubygems/test_gem_ext_cmake_builder.rb b/test/rubygems/test_gem_ext_cmake_builder.rb
index 4af7de0..b3f9241 100644
--- a/test/rubygems/test_gem_ext_cmake_builder.rb
+++ b/test/rubygems/test_gem_ext_cmake_builder.rb
@@ -12,6 +12,7 @@ class TestGemExtCmakeBuilder < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_ext_cmake_builder.rb#L12
 
     begin
       _, status = Open3.capture2e('cmake')
+      skip 'cmake not present' unless status.success?
     rescue Errno::ENOENT
       skip 'cmake not present'
     end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]