mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_require.rb (test_require_too_long_filename):
Kernel#require does not use dln_find_file_r (at r18242). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d56defa55
commit
517fd61e14
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 28 21:00:10 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* 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@tsg.ne.jp>
|
||||
|
||||
* vm_core.h: move the definition of struct rb_mutex_struct.
|
||||
|
|
|
@ -19,13 +19,20 @@ class TestRequire < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue