diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-16 03:10:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-16 03:10:31 +0000 |
commit | b4a9962e85b8b58090f579b9cd9c0f593460f70c (patch) | |
tree | 17480014d7e45d24a60e0cb25e9087af8e4a693a /test/ruby | |
parent | 585f8fcf0d514d381f9f98cf4d1db5d16d5d1aae (diff) | |
download | ruby-b4a9962e85b8b58090f579b9cd9c0f593460f70c.tar.gz |
* test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risk
of race condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_thread.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index a0eba3dbd4..c1ae500aee 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 |