summaryrefslogtreecommitdiff
path: root/test/ruby/test_system.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_system.rb')
-rw-r--r--test/ruby/test_system.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb
index faf63deba3..3d55eee725 100644
--- a/test/ruby/test_system.rb
+++ b/test/ruby/test_system.rb
@@ -103,7 +103,7 @@ class TestSystem < Test::Unit::TestCase
tmp = open(tmpfilename, "w")
tmp.print "foo\nbar\nbaz";
tmp.close
- assert_match(/\n.*\nbar\nbaz\n/, `@@find "ba" #{tmpfilename.gsub("/", "\\")}`, testname);
+ assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, testname);
}
end
end