[前][次][番号順一覧][スレッド一覧]

ruby-changes:18849

From: usa <ko1@a...>
Date: Tue, 15 Feb 2011 09:51:58 +0900 (JST)
Subject: [ruby-changes:18849] Ruby:r30874 (trunk): * test/ruby/test_system.rb (TestSystem#test_system_at): use findstr

usa	2011-02-15 09:51:50 +0900 (Tue, 15 Feb 2011)

  New Revision: 30874

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30874

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_system.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30873)
+++ ChangeLog	(revision 30874)
@@ -1,3 +1,9 @@
+Tue Feb 15 09:49:33 2011  NAKAMURA Usaku  <usa@r...>
+
+	* 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  <nagachika00@g...>
 
 	* thread.c (rb_thread_io_blocking_region): reset th->waiting_fd
Index: test/ruby/test_system.rb
===================================================================
--- test/ruby/test_system.rb	(revision 30873)
+++ test/ruby/test_system.rb	(revision 30874)
@@ -103,7 +103,7 @@
           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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]