From dccf0183e9015396d92c02cb4c162476639f7f57 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 18 Jun 2008 10:23:25 +0000 Subject: [PATCH] * 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 --- test/ruby/test_rubyoptions.rb | 8 ++++---- 1 file 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