diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-24 13:25:40 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-24 13:25:40 +0000 |
commit | 8cc2feeb0c71d9031a555344306364a6a5a01f1d (patch) | |
tree | e7f338c046ca1a1fad6ec3e48e2e1bc7927b4a2b | |
parent | c856158bd1638707b8e43be78553ceafb3301b86 (diff) | |
download | ruby-8cc2feeb0c71d9031a555344306364a6a5a01f1d.tar.gz |
test_rubyoptions.rb: RbConfig::CONFIG['cppflags'] can be nil
not '' at least on AppVeyor
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 15271cd6e8..6e501a45b6 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -116,7 +116,7 @@ class TestRubyOptions < Test::Unit::TestCase 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]) |