mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_shebang.rb (test_shebang): on windows path separetor is '\'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2c66adba64
commit
dccf0183e9
1 changed files with 4 additions and 4 deletions
|
@ -126,7 +126,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby('--enable', 'foobarbazqux', '-e', '') do |w, r, e|
|
ruby('--enable', 'foobarbazqux', '-e', '') do |w, r, e|
|
||||||
assert_match(/unknown argument for --enable: `foobarbazqux'/, e.read)
|
assert_match(/unknown argument for --enable: `foobarbazqux'/, e.read) #`
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby('--enable') do |w, r, e|
|
ruby('--enable') do |w, r, e|
|
||||||
|
@ -151,7 +151,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby('--disable', 'foobarbazqux', '-e', '') do |w, r, e|
|
ruby('--disable', 'foobarbazqux', '-e', '') do |w, r, e|
|
||||||
assert_match(/unknown argument for --disable: `foobarbazqux'/, e.read)
|
assert_match(/unknown argument for --disable: `foobarbazqux'/, e.read) #`
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby('--disable') do |w, r, e|
|
ruby('--disable') do |w, r, e|
|
||||||
|
@ -413,14 +413,14 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
ruby do |w, r, e|
|
ruby do |w, r, e|
|
||||||
w.print "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux\r\np 1\r\n"
|
w.print "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux\r\np 1\r\n"
|
||||||
w.close
|
w.close
|
||||||
assert_match(/Can't exec \/test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read)
|
assert_match(/Can't exec (?:\/|\\)test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read) #'
|
||||||
assert_equal('', r.read.chomp)
|
assert_equal('', r.read.chomp)
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby do |w, r, e|
|
ruby do |w, r, e|
|
||||||
w.print "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux -foo -bar\r\np 1\r\n"
|
w.print "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux -foo -bar\r\np 1\r\n"
|
||||||
w.close
|
w.close
|
||||||
assert_match(/Can't exec \/test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read)
|
assert_match(/Can't exec (?:\/|\\)test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read) #'
|
||||||
assert_equal('', r.read.chomp)
|
assert_equal('', r.read.chomp)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue