summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-15 00:51:50 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-15 00:51:50 +0000
commit25a4c79279b3bbed2f99d5bfc14019c3f31d2807 (patch)
tree4890ff15c7211617c2aa299904306f612f418119 /test
parentd7feebb4b39be7886735acea73de825c5d54e39e (diff)
* test/ruby/test_system.rb (TestSystem#test_system_at): use findstr
command instead of find command, because the latter is confusing another famous Unix command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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