From 7df365986f9eb874c700de8b7015285ca5dd660f Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Oct 2009 03:10:31 +0000 Subject: * test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risk of race condition. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_thread.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index a0eba3dbd..c1ae500ae 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -311,11 +311,9 @@ class TestThread < Test::Unit::TestCase 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 -- cgit