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:
parent
4acc7563a1
commit
95a6212a43
Notes:
git
2021-11-29 23:07:37 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue