Simplify platform check for Windows-UCRT
RUBY_PLATFORM can be used since commit 576b2e64cdc5ea42ad345dd3c1c215e006c06fca .
This commit is contained in:
parent
4acc7563a1
commit
95a6212a43
Notes:
git
2021-11-29 23:07:37 +09:00
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user