1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-10-16 03:10:31 +00:00
parent 585f8fcf0d
commit b4a9962e85

View file

@ -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