From 31a6d508635815d24ced07c5a65273cb0fcf54de Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 9 Sep 2009 06:46:31 +0000 Subject: * load.c (rb_feature_provided): fixed for autoloading extension library without suffix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_autoload.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/ruby/test_autoload.rb (limited to 'test') diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb new file mode 100644 index 0000000000..c2039086cf --- /dev/null +++ b/test/ruby/test_autoload.rb @@ -0,0 +1,12 @@ +require 'test/unit' +require_relative 'envutil' + +class TestAutoload < Test::Unit::TestCase + def test_autoload_so + # Continuation is always available, unless excluded intentionally. + assert_in_out_err([], <<-INPUT, [], []) + autoload :Continuation, "continuation" + begin Continuation; rescue LoadError; end + INPUT + end +end -- cgit v1.2.3