ruby-changes:52095
From: nobu <ko1@a...>
Date: Sat, 11 Aug 2018 23:32:21 +0900 (JST)
Subject: [ruby-changes:52095] nobu:r64303 (trunk): test_env.rb: a failure on appveyor
nobu 2018-08-11 23:32:15 +0900 (Sat, 11 Aug 2018) New Revision: 64303 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64303 Log: test_env.rb: a failure on appveyor * test/ruby/test_env.rb (test_huge_value): Windows 8 seems having a limit on single environment variable. Modified files: trunk/test/ruby/test_env.rb Index: test/ruby/test_env.rb =================================================================== --- test/ruby/test_env.rb (revision 64302) +++ test/ruby/test_env.rb (revision 64303) @@ -457,7 +457,7 @@ class TestEnv < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_env.rb#L457 def test_huge_value huge_value = "bar" * 40960 ENV["foo"] = "bar" - if /mswin|mingw/ =~ RUBY_PLATFORM && windows_version < 6 + if /mswin|mingw/ =~ RUBY_PLATFORM && windows_version < 7 assert_raise(Errno::EINVAL) { ENV["foo"] = huge_value } assert_equal("bar", ENV["foo"]) else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/