summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <[email protected]>2021-11-24 20:58:02 +0100
committerNobuyoshi Nakada <[email protected]>2021-11-29 23:07:16 +0900
commit95a6212a431929d91435056fa8df13ae697f8071 ()
tree204a5afe8839dfec014d1eb4af489c805a7cd073
parent4acc7563a111fd35524b07150990dc3ef842a685 (diff)
Simplify platform check for Windows-UCRT
RUBY_PLATFORM can be used since commit 576b2e64cdc5ea42ad345dd3c1c215e006c06fca .
Notes: Merged: https://.com/ruby/ruby/pull/5168
-rw-r--r--test/ruby/test_env.rb2
1 files changed, 1 insertions, 1 deletions
@@ -503,7 +503,7 @@ class TestEnv < Test::Unit::TestCase
end
def test_huge_value
- if /mswin/ =~ RUBY_PLATFORM || /ucrt/ =~ RbConfig::CONFIG['sitearch']
# On Windows >= Vista each environment variable can be max 32768 characters
huge_value = "bar" * 10900
else