aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-07 15:44:34 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-07 15:44:34 +0000
commite89d48a1e6867916b4ddc0863885a6ce05a16b46 (patch)
treecf8fdec5307d9026aca5e1023bf46236ca5c74fe /test/ruby/test_rubyoptions.rb
parent99a35bf0b31d18c1f2bffd653447b523b35da8d2 (diff)
downloadruby-e89d48a1e6867916b4ddc0863885a6ce05a16b46.tar.gz
* ruby.c (warn_cr_in_shebang): meaningless check on DOSISH platforms.
fixed a test failure introduced at r53998. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 012deebae7..6ee151e5e8 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -314,7 +314,7 @@ class TestRubyOptions < Test::Unit::TestCase
assert_in_out_err([{'RUBYOPT' => nil}], "#!ruby -KU -Eutf-8\r\np \"\u3042\"\r\n",
["\"\u3042\""], /shebang line ends with \\r/,
- encoding: Encoding::UTF_8)
+ encoding: Encoding::UTF_8) if /mswin|mingw/ !~ RUBY_PLATFORM
bug4118 = '[ruby-dev:42680]'
assert_in_out_err(%w[], "#!/bin/sh\n""#!shebang\n""#!ruby\n""puts __LINE__\n",