diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-22 08:41:07 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-22 08:41:07 +0000 |
| commit | 17502f238099f4166867d89908ec9ede4623328f (patch) | |
| tree | 52115e1b0bccac66dcd9a887c02574368f62408c /test/ruby | |
| parent | d93f1876256bcf9b0c32a1b6e9dae3efb14127c0 (diff) | |
| download | ruby-17502f238099f4166867d89908ec9ede4623328f.tar.gz ruby-17502f238099f4166867d89908ec9ede4623328f.tar.xz ruby-17502f238099f4166867d89908ec9ede4623328f.zip | |
add a test for [ruby-dev:34802].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_continuation.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_continuation.rb b/test/ruby/test_continuation.rb index f8302abdc..c719db8c3 100644 --- a/test/ruby/test_continuation.rb +++ b/test/ruby/test_continuation.rb @@ -63,5 +63,19 @@ class TestContinuation < Test::Unit::TestCase $k.call if n < 100 }, '[ruby-dev:34798]' end + + def test_marshal_dump + assert_normal_exit %q{ + require 'continuation' + n = 0 + o = Object.new + def o.marshal_dump() callcc {|k| $k = k }; "fofof" end + a = [1,2,3,o,4,5,6] + Marshal.dump(a).inspect + n += 1 + $k.call if n < 100 + }, '[ruby-dev:34802]' + end + end |
