diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-23 13:16:28 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-23 13:16:28 +0000 |
commit | dea79e98721e4e952021795c966639cdd109aafb (patch) | |
tree | a2b82b4f75fa51ac4a4d4d20fdd4b4b1c6cada04 /test | |
parent | 1ae16961956c2459c0f29b676c5da9cb9cc875bf (diff) |
merge revision(s) 25230:25229:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@28406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_marshal.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index d40c9da4d4..5ae521e4f6 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -72,34 +72,6 @@ class TestMarshal < Test::Unit::TestCase assert_equal("marshal data too short", e.message) end - class DumpTest - def marshal_dump - loop { Thread.pass } - end - end - - class LoadTest - def marshal_dump - nil - end - def marshal_load(obj) - loop { Thread.pass } - end - end - - def test_context_switch - o = DumpTest.new - Thread.new { Marshal.dump(o) } - GC.start - assert(true, '[ruby-dev:39425]') - - o = LoadTest.new - m = Marshal.dump(o) - Thread.new { Marshal.load(m) } - GC.start - assert(true, '[ruby-dev:39425]') - end - def test_taint x = Object.new x.taint |