summaryrefslogtreecommitdiff
path: root/test/thread/test_cv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/thread/test_cv.rb')
-rw-r--r--test/thread/test_cv.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/thread/test_cv.rb b/test/thread/test_cv.rb
index 9a9b407a5b..92179e8e45 100644
--- a/test/thread/test_cv.rb
+++ b/test/thread/test_cv.rb
@@ -188,4 +188,12 @@ INPUT
assert_nothing_raised(Exception) { mutex.synchronize {condvar.broadcast} }
end
+
+ def test_dup
+ bug9440 = '[ruby-core:59961] [Bug #9440]'
+ condvar = ConditionVariable.new
+ assert_raise(NoMethodError, bug9440) do
+ condvar.dup
+ end
+ end
end