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

ruby-changes:51296

From: k0kubun <ko1@a...>
Date: Thu, 24 May 2018 22:25:45 +0900 (JST)
Subject: [ruby-changes:51296] k0kubun:r63502 (trunk): test_rubyoptions.rb: RbConfig::CONFIG['cppflags'] can be nil

k0kubun	2018-05-24 22:25:40 +0900 (Thu, 24 May 2018)

  New Revision: 63502

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63502

  Log:
    test_rubyoptions.rb: RbConfig::CONFIG['cppflags'] can be nil
    
    not '' at least on AppVeyor

  Modified files:
    trunk/test/ruby/test_rubyoptions.rb
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 63501)
+++ test/ruby/test_rubyoptions.rb	(revision 63502)
@@ -116,7 +116,7 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L116
   def test_verbose
     assert_in_out_err(["-vve", ""]) do |r, e|
       assert_match(VERSION_PATTERN, r[0])
-      if RbConfig::CONFIG['cppflags'].match?(/(\A|\s)-DMJIT_FORCE_ENABLE\b/)
+      if RbConfig::CONFIG.fetch('cppflags', '').match?(/(\A|\s)-DMJIT_FORCE_ENABLE\b/)
         assert_equal(RUBY_DESCRIPTION, r[0])
       else
         assert_equal(NO_JIT_DESCRIPTION, r[0])

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

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