aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_weakref.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-24 07:43:13 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-24 07:43:13 +0000
commit757413f6bb6879a3bf92cf26fa4d0c9467cd84ff (patch)
treed8654e55dac758876a43d41d7f2c1839b401c0c7 /test/test_weakref.rb
parent9d803dfd5f1a57a6d07c27b0d95917165ba259dc (diff)
downloadruby-757413f6bb6879a3bf92cf26fa4d0c9467cd84ff.tar.gz
Rvert r37827 and r37828
Revert "Fix finalize of WeakRef" This causes segv on rubyspec. http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20121124T050101Z.log.html.gz you can reproduce by make test-rubyspec MSPECOPT='-V library/weakref' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_weakref.rb')
-rw-r--r--test/test_weakref.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/test_weakref.rb b/test/test_weakref.rb
index 6c80f5924d..0f943cdf12 100644
--- a/test/test_weakref.rb
+++ b/test/test_weakref.rb
@@ -21,23 +21,4 @@ class TestWeakRef < Test::Unit::TestCase
ObjectSpace.garbage_collect
assert_raise(WeakRef::RefError) {weak.to_s}
end
-
- def test_not_reference_different_object
- bug7304 = '[ruby-core:49044]'
- weakrefs = []
- 3.times do
- obj = Object.new
- def obj.foo; end
- weakrefs << WeakRef.new(obj)
- ObjectSpace.garbage_collect
- end
- assert_nothing_raised(NoMethodError, bug7304) {
- weakrefs.each do |weak|
- begin
- weak.foo
- rescue WeakRef::RefError
- end
- end
- }
- end
end