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

ruby-changes:17025

From: akr <ko1@a...>
Date: Tue, 17 Aug 2010 20:06:35 +0900 (JST)
Subject: [ruby-changes:17025] Ruby:r29022 (trunk): * test/ruby/test_io.rb (test_threaded_flush): test "hi" is not output

akr	2010-08-17 20:06:22 +0900 (Tue, 17 Aug 2010)

  New Revision: 29022

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

  Log:
    * test/ruby/test_io.rb (test_threaded_flush): test "hi" is not output
      twice.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29021)
+++ ChangeLog	(revision 29022)
@@ -1,3 +1,8 @@
+Tue Aug 17 20:05:29 2010  Tanaka Akira  <akr@f...>
+
+	* test/ruby/test_io.rb (test_threaded_flush): test "hi" is not output
+	  twice.
+
 Tue Aug 17 15:13:28 2010  NARUSE, Yui  <naruse@r...>
 
 	* lib/date.rb: Re-revert the part of r28950.
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 29021)
+++ test/ruby/test_io.rb	(revision 29022)
@@ -1619,7 +1619,9 @@
     }.gsub(/^\s+/, '')
     10.times.map do
       Thread.start do
-        assert_in_out_err([], src, [%q["hi!"]])
+        assert_in_out_err([], src) {|stdout, stderr|
+          assert_no_match(/hi.*hi/, stderr.join)
+        }
       end
     end.each {|th| th.join}
   end

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

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