From 132d0624ec5b59d2d55fc0ccf01b53c10010d787 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Jan 2009 20:19:44 +0000 Subject: * variable.c (rb_const_get_0), vm_insnhelper.c (vm_get_ev_const): avoids infinite self recursion autoload. [ruby-core:21696] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_autoload.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bootstraptest/test_autoload.rb') diff --git a/bootstraptest/test_autoload.rb b/bootstraptest/test_autoload.rb index 048256170e..395153f438 100644 --- a/bootstraptest/test_autoload.rb +++ b/bootstraptest/test_autoload.rb @@ -59,3 +59,11 @@ assert_equal 'okok', %q{ [t1.value, t2.value].join } +assert_finish 5, %q{ + autoload :ZZZ, File.expand_path(__FILE__) + begin + ZZZ + rescue NameError + end +}, '[ruby-core:21696]' + -- cgit v1.2.3