From 95a6212a431929d91435056fa8df13ae697f8071 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Wed, 24 Nov 2021 20:58:02 +0100 Subject: Simplify platform check for Windows-UCRT RUBY_PLATFORM can be used since commit 576b2e64cdc5ea42ad345dd3c1c215e006c06fca . --- test/ruby/test_env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index ea0f367334..5bc974d6b2 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -503,7 +503,7 @@ class TestEnv < Test::Unit::TestCase end def test_huge_value - if /mswin/ =~ RUBY_PLATFORM || /ucrt/ =~ RbConfig::CONFIG['sitearch'] + if /mswin|ucrt/ =~ RUBY_PLATFORM # On Windows >= Vista each environment variable can be max 32768 characters huge_value = "bar" * 10900 else -- cgit v1.2.3