ruby-changes:13583
From: nobu <ko1@a...>
Date: Fri, 16 Oct 2009 12:11:16 +0900 (JST)
Subject: [ruby-changes:13583] Ruby:r25364 (trunk): * test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risk
nobu 2009-10-16 12:10:31 +0900 (Fri, 16 Oct 2009) New Revision: 25364 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25364 Log: * test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risk of race condition. Modified files: trunk/test/ruby/test_thread.rb Index: test/ruby/test_thread.rb =================================================================== --- test/ruby/test_thread.rb (revision 25363) +++ test/ruby/test_thread.rb (revision 25364) @@ -311,11 +311,9 @@ assert(c.stop?) d.kill - assert_equal("aborting", d.status) - assert(!d.stop?) + assert_equal(["aborting", false], [d.status, d.stop?]) - assert_equal("run", e.status) - assert(!e.stop?) + assert_equal(["run", false], [e.status, e.stop?]) ensure a.kill if a -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/