summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 10:23:25 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 10:23:25 +0000
commitdccf0183e9015396d92c02cb4c162476639f7f57 (patch)
tree22a9a408f194e3fa3ba0e470ebeedcb591af8c14 /test/ruby/test_rubyoptions.rb
parent2c66adba64c82c5c328c909c6b2c2dabf0f954c4 (diff)
* 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
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 3f459f60a3..810ed74a60 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -126,7 +126,7 @@ class TestRubyOptions < Test::Unit::TestCase
end
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
ruby('--enable') do |w, r, e|
@@ -151,7 +151,7 @@ class TestRubyOptions < Test::Unit::TestCase
end
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
ruby('--disable') do |w, r, e|
@@ -413,14 +413,14 @@ class TestRubyOptions < Test::Unit::TestCase
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.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)
end
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.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)
end