aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-04 13:27:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-04 13:27:36 +0000
commit6b327e72c38ebfefe62221fa658ce2fbbed24f51 (patch)
tree71be86a0a626a331d7e3138f852a01f354b48e4f /test/ruby
parentd04ee29e77891f1981dbf4d5a1d2c27a626fb52c (diff)
downloadruby-6b327e72c38ebfefe62221fa658ce2fbbed24f51.tar.gz
ruby.c: warn_cr_in_shebang
* ruby.c (load_file_internal): warn if shebang line ends with a carriage return. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 1bd005440d..012deebae7 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -313,7 +313,7 @@ class TestRubyOptions < Test::Unit::TestCase
[], /: no Ruby script found in input/)
assert_in_out_err([{'RUBYOPT' => nil}], "#!ruby -KU -Eutf-8\r\np \"\u3042\"\r\n",
- ["\"\u3042\""], [],
+ ["\"\u3042\""], /shebang line ends with \\r/,
encoding: Encoding::UTF_8)
bug4118 = '[ruby-dev:42680]'