diff --git a/ChangeLog b/ChangeLog index 444251661b..a91c72c337 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 15 09:49:33 2011 NAKAMURA Usaku + + * 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. + Mon Feb 14 23:01:19 2011 CHIKANAGA Tomoyuki * thread.c (rb_thread_io_blocking_region): reset th->waiting_fd 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