Skip to content

Commit

Permalink
Simplify platform check for Windows-UCRT
Browse files Browse the repository at this point in the history
RUBY_PLATFORM can be used since commit 576b2e6 .
  • Loading branch information
larskanis authored and nobu committed Nov 29, 2021
1 parent 4acc756 commit 95a6212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def test_update
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
Expand Down

0 comments on commit 95a6212

Please sign in to comment.