[前][次][番号順一覧][スレッド一覧]

ruby-changes:70233

From: Koichi <ko1@a...>
Date: Wed, 15 Dec 2021 15:05:05 +0900 (JST)
Subject: [ruby-changes:70233] 13c37835d5 (master): ucrt can raise `Errno::EINVAL`

https://git.ruby-lang.org/ruby.git/commit/?id=13c37835d5

From 13c37835d5dbda3493f54baf13f75ed5b59fc507 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Wed, 15 Dec 2021 01:24:36 +0900
Subject: ucrt can raise `Errno::EINVAL`

`ENV[key] = long_str` can raise `Errno::EINVAL` also on ucrt env.
---
 test/ruby/test_env.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb
index 02be1ba74b2..442fc60f7ee 100644
--- a/test/ruby/test_env.rb
+++ b/test/ruby/test_env.rb
@@ -1366,7 +1366,7 @@ class TestEnv < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_env.rb#L1366
         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)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]