* 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
This commit is contained in:
parent
6f7e284257
commit
19e22ae8f4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user