diff options
author | Koichi Sasada <ko1@atdot.net> | 2021-12-15 01:24:36 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2021-12-15 15:04:34 +0900 |
commit | 13c37835d5dbda3493f54baf13f75ed5b59fc507 (patch) | |
tree | 9b1d7052b9045c3dfc2dc8be712372b292db24bb /test/ruby | |
parent | 04aab3c2592a2234921fb715c1ff9f36a58828ca (diff) |
ucrt can raise `Errno::EINVAL`
`ENV[key] = long_str` can raise `Errno::EINVAL` also on ucrt env.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5263
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_env.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 02be1ba74b..442fc60f7e 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -1366,7 +1366,7 @@ class TestEnv < Test::Unit::TestCase Ractor.yield ENV["foo"] end - if /mswin/ =~ RUBY_PLATFORM + if /mswin|ucrt/ =~ RUBY_PLATFORM #{str_for_assert_raise_on_yielded_exception_class(Errno::EINVAL, "r")} result = r.take assert_equal("bar", result) |