summaryrefslogtreecommitdiff
path: root/test/thread/test_cv.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-22 06:59:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-22 06:59:41 +0000
commit06d2e8aaf7fe60a09245963f2f69feb5685db8f0 (patch)
treecf16b4a202de07e9015cd42287c2a10def86cd6c /test/thread/test_cv.rb
parenta658a5ae530e0cacc1f499899807c2d05a1f61ed (diff)
thread/thread.c: no dup
* ext/thread/thread.c (Init_thread): ConditionVariable and Queue are not able to copy. [ruby-core:59961] [Bug #9440] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 9a9b407..92179e8 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