summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 11:36:42 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 11:36:42 +0000
commit19e22ae8f415441190837956f50e64ae07ccff52 (patch)
tree5e7a91a7ca4701e4d61688b910b7f1fa29e78b8f /test/ruby/test_rubyoptions.rb
parent6f7e284257fc89dbc7d9a967e889d84cfddf7353 (diff)
* test/ruby/test_rubyoptions.rb: use character class instead of alternation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 810ed74a60..49c569aca9 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -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