summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 03:10:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 03:10:31 +0000
commit7df365986f9eb874c700de8b7015285ca5dd660f (patch)
tree17480014d7e45d24a60e0cb25e9087af8e4a693a /test/ruby
parent1a681083d35481463dbf61d34d79cb33315184f6 (diff)
downloadruby-7df365986f9eb874c700de8b7015285ca5dd660f.tar.gz
ruby-7df365986f9eb874c700de8b7015285ca5dd660f.tar.xz
ruby-7df365986f9eb874c700de8b7015285ca5dd660f.zip
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_thread.rb6
1 files changed, 2 insertions, 4 deletions
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