summaryrefslogtreecommitdiff
path: root/test/thread/test_cv.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 02:20:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 02:20:26 +0000
commit1dd527012b5da0f7d84986a201c3b7f834adef78 (patch)
tree0f0fa30635fe967a05a490e407c600f173e51e3d /test/thread/test_cv.rb
parentf3867e2203738c0ef5907e6b4251e780daa075c2 (diff)
thread.c: undumpable
* ext/thread/thread.c (undumpable): ConditionVariable and Queue are not dumpable. [ruby-core:61677] [Bug #9674] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45423 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 92179e8e45d..bb0bcb86853 100644
--- a/test/thread/test_cv.rb
+++ b/test/thread/test_cv.rb
@@ -196,4 +196,12 @@ INPUT
condvar.dup
end
end
+
+ def test_dump
+ bug9674 = '[ruby-core:61677] [Bug #9674]'
+ condvar = ConditionVariable.new
+ assert_raise_with_message(TypeError, /#{ConditionVariable}/, bug9674) do
+ Marshal.dump(condvar)
+ end
+ end
end