summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLars Kanis <kanis@comcard.de>2021-11-24 20:58:02 +0100
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-29 23:07:16 +0900
commit95a6212a431929d91435056fa8df13ae697f8071 (patch)
tree204a5afe8839dfec014d1eb4af489c805a7cd073 /test
parent4acc7563a111fd35524b07150990dc3ef842a685 (diff)
Simplify platform check for Windows-UCRT
RUBY_PLATFORM can be used since commit 576b2e64cdc5ea42ad345dd3c1c215e006c06fca .
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5168
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_env.rb2
1 files changed, 1 insertions, 1 deletions
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