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

Removed Windows version condition

Seems all MSVC runtimes fails with EINVAL, regardless Windows version.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-10-01 07:50:08 +00:00
parent 574d844a0f
commit b74f7fc3f2

View file

@ -459,7 +459,7 @@ class TestEnv < Test::Unit::TestCase
def test_huge_value def test_huge_value
huge_value = "bar" * 40960 huge_value = "bar" * 40960
ENV["foo"] = "bar" ENV["foo"] = "bar"
if /mswin/ =~ RUBY_PLATFORM && windows_version < 7 if /mswin/ =~ RUBY_PLATFORM
assert_raise(Errno::EINVAL) { ENV["foo"] = huge_value } assert_raise(Errno::EINVAL) { ENV["foo"] = huge_value }
assert_equal("bar", ENV["foo"]) assert_equal("bar", ENV["foo"])
else else