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

ucrt can raise Errno::EINVAL

`ENV[key] = long_str` can raise `Errno::EINVAL` also on ucrt env.
This commit is contained in:
Koichi Sasada 2021-12-15 01:24:36 +09:00
parent 04aab3c259
commit 13c37835d5
Notes: git 2021-12-15 15:05:02 +09:00

View file

@ -1366,7 +1366,7 @@ class TestEnv < Test::Unit::TestCase
Ractor.yield ENV["foo"] Ractor.yield ENV["foo"]
end end
if /mswin/ =~ RUBY_PLATFORM if /mswin|ucrt/ =~ RUBY_PLATFORM
#{str_for_assert_raise_on_yielded_exception_class(Errno::EINVAL, "r")} #{str_for_assert_raise_on_yielded_exception_class(Errno::EINVAL, "r")}
result = r.take result = r.take
assert_equal("bar", result) assert_equal("bar", result)