diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-20 13:54:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-20 13:54:59 +0000 |
commit | 1e42030f2a5518956c234a32c6c6cf1655519940 (patch) | |
tree | bfca0af19918d3b9bac39b2e493a8cbe85c62d35 /test | |
parent | ded27bf5dc25d61c1483ae2a79570b1435c8348b (diff) | |
download | ruby-1e42030f2a5518956c234a32c6c6cf1655519940.tar.gz |
test_thread: test_condvar_wait_not_owner duplicates test_condvar_nolock
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_thread.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 16af922e98..d5386c0cbe 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -67,13 +67,6 @@ class TestThread < Test::Unit::TestCase assert_equal([0, 1, 2], result) end - def test_condvar_wait_not_owner - mutex = Mutex.new - condvar = ConditionVariable.new - - assert_raise(ThreadError) { condvar.wait(mutex) } - end - def test_condvar_wait_exception_handling # Calling wait in the only thread running should raise a ThreadError of # 'stopping only thread' @@ -194,7 +187,7 @@ class TestThread < Test::Unit::TestCase mutex = Mutex.new condvar = ConditionVariable.new - assert_raise(ThreadError) { condvar.wait(mutex) } + assert_raise(ThreadError) {condvar.wait(mutex)} end def test_condvar_nolock_2 |