1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Simplify platform check for Windows-UCRT

RUBY_PLATFORM can be used since commit 576b2e64cd .
This commit is contained in:
Lars Kanis 2021-11-24 20:58:02 +01:00 committed by Nobuyoshi Nakada
parent 4acc7563a1
commit 95a6212a43
Notes: git 2021-11-29 23:07:37 +09:00

View file

@ -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