ruby-changes:6731
From: mame <ko1@a...>
Date: Mon, 28 Jul 2008 21:00:57 +0900 (JST)
Subject: [ruby-changes:6731] Ruby:r18247 (trunk): * test/ruby/test_require.rb (test_require_too_long_filename):
mame 2008-07-28 21:00:43 +0900 (Mon, 28 Jul 2008) New Revision: 18247 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18247 Log: * test/ruby/test_require.rb (test_require_too_long_filename): Kernel#require does not use dln_find_file_r (at r18242). Modified files: trunk/ChangeLog trunk/test/ruby/test_require.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 18246) +++ ChangeLog (revision 18247) @@ -1,3 +1,8 @@ +Mon Jul 28 21:00:10 2008 Yusuke Endoh <mame@t...> + + * test/ruby/test_require.rb (test_require_too_long_filename): + Kernel#require does not use dln_find_file_r (at r18242). + Mon Jul 28 20:17:03 2008 Yusuke Endoh <mame@t...> * vm_core.h: move the definition of struct rb_mutex_struct. Index: test/ruby/test_require.rb =================================================================== --- test/ruby/test_require.rb (revision 18246) +++ test/ruby/test_require.rb (revision 18247) @@ -19,13 +19,20 @@ end def test_require_too_long_filename - assert_in_out_err([], <<-INPUT, %w(:ok), /^.+$/) + assert_in_out_err([], <<-INPUT, %w(:ok), []) begin require '#{ "foo/" * 10000 }foo' rescue LoadError p :ok end INPUT + + assert_in_out_err(["-S", "foo/" * 10000 + "foo"], "") do |r, e| + assert_equal([], r) + assert_operator(2, :<=, e.size) + assert_equal("openpath: pathname too long (ignored)", e.first) + assert_match(/\(LoadError\)/, e.last) + end end def test_require_path_home -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/