mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_env.rb: change mingw branch
e287cb7391/patches/gte20600/test-ruby-test_env.rb_test_huge_value.patch
From: MSP-Greg (Greg L) <Greg.mpls@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0c95c744ce
commit
36e41fd950
1 changed files with 1 additions and 4 deletions
|
@ -455,12 +455,9 @@ class TestEnv < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_huge_value
|
||||
if ENV.key?('APPVEYOR') && /mingw/ =~ RUBY_PLATFORM
|
||||
skip 'failing on AppVeyor MinGW build for now'
|
||||
end
|
||||
huge_value = "bar" * 40960
|
||||
ENV["foo"] = "bar"
|
||||
if /mswin|mingw/ =~ RUBY_PLATFORM && windows_version < 7
|
||||
if /mswin/ =~ RUBY_PLATFORM && windows_version < 7
|
||||
assert_raise(Errno::EINVAL) { ENV["foo"] = huge_value }
|
||||
assert_equal("bar", ENV["foo"])
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue