ruby-changes:5905
From: usa <ko1@a...>
Date: Wed, 18 Jun 2008 19:23:31 +0900 (JST)
Subject: [ruby-changes:5905] Ruby:r17413 (trunk): * test/ruby/test_shebang.rb (test_shebang): on windows path separetor is '\'.
usa 2008-06-18 19:23:25 +0900 (Wed, 18 Jun 2008)
New Revision: 17413
Modified files:
trunk/test/ruby/test_rubyoptions.rb
Log:
* test/ruby/test_shebang.rb (test_shebang): on windows path separetor is '\'.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_rubyoptions.rb?r1=17413&r2=17412&diff_format=u
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb (revision 17412)
+++ test/ruby/test_rubyoptions.rb (revision 17413)
@@ -126,7 +126,7 @@
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 @@
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 @@
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
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/