diff options
Diffstat (limited to 'test/thread/test_cv.rb')
-rw-r--r-- | test/thread/test_cv.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/thread/test_cv.rb b/test/thread/test_cv.rb index 92179e8e45..bb0bcb8685 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 |