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

ruby-changes:23238

From: naruse <ko1@a...>
Date: Wed, 11 Apr 2012 04:34:46 +0900 (JST)
Subject: [ruby-changes:23238] naruse:r35289 (trunk): It is wrong to expect the last output is "exit".

naruse	2012-04-11 04:34:34 +0900 (Wed, 11 Apr 2012)

  New Revision: 35289

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

  Log:
    It is wrong to expect the last output is "exit".
    
    When lb.join is commented out as [ruby-dev:30653] says,
    @keeper is living until the program truely die.
    So after it outputs "exit.", it may output "#{i}: cont".

  Modified files:
    trunk/test/ruby/test_thread.rb

Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 35288)
+++ test/ruby/test_thread.rb	(revision 35289)
@@ -218,7 +218,6 @@
     3.times {
       result = `#{EnvUtil.rubybin} #{lbtest}`
       assert(!$?.coredump?, '[ruby-dev:30653]')
-      assert_equal("exit.", result[/.*\Z/], '[ruby-dev:30653]')
     }
   end
 

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

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