Remove stale tests
These tests were added at a198bb3929a4562a12b4aa245a297c7d3695149f, when these classes were `Struct`s. Since these classes have been rewritten, these tests no longer make sense.
This commit is contained in:
parent
69465df424
commit
0a466e3072
@ -6,12 +6,6 @@ class TestThreadConditionVariable < Test::Unit::TestCase
|
|||||||
ConditionVariable = Thread::ConditionVariable
|
ConditionVariable = Thread::ConditionVariable
|
||||||
Mutex = Thread::Mutex
|
Mutex = Thread::Mutex
|
||||||
|
|
||||||
def test_initialized
|
|
||||||
assert_raise(TypeError) {
|
|
||||||
ConditionVariable.allocate.wait(nil)
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_condvar_signal_and_wait
|
def test_condvar_signal_and_wait
|
||||||
mutex = Thread::Mutex.new
|
mutex = Thread::Mutex.new
|
||||||
condvar = Thread::ConditionVariable.new
|
condvar = Thread::ConditionVariable.new
|
||||||
|
@ -7,18 +7,6 @@ class TestThreadQueue < Test::Unit::TestCase
|
|||||||
Queue = Thread::Queue
|
Queue = Thread::Queue
|
||||||
SizedQueue = Thread::SizedQueue
|
SizedQueue = Thread::SizedQueue
|
||||||
|
|
||||||
def test_queue_initialized
|
|
||||||
assert_raise(TypeError) {
|
|
||||||
Queue.allocate.push(nil)
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_sized_queue_initialized
|
|
||||||
assert_raise(TypeError) {
|
|
||||||
SizedQueue.allocate.push(nil)
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_queue
|
def test_queue
|
||||||
grind(5, 1000, 15, Queue)
|
grind(5, 1000, 15, Queue)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user