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)