1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-08-11 14:32:15 +00:00
parent 1b157084a4
commit 3c1f1c3348

View file

@ -457,7 +457,7 @@ class TestEnv < Test::Unit::TestCase
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