diff options
| author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-28 12:00:43 +0000 |
|---|---|---|
| committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-28 12:00:43 +0000 |
| commit | 892ff56184c4168a0774099c60efa033f7f1bc08 (patch) | |
| tree | b3182d90886fd7faa564f8723b769cc54c82b23c /test/ruby | |
| parent | 1cf72524fe23e12d75aa4ae1205e03dab3a965ec (diff) | |
| download | ruby-892ff56184c4168a0774099c60efa033f7f1bc08.tar.gz ruby-892ff56184c4168a0774099c60efa033f7f1bc08.tar.xz ruby-892ff56184c4168a0774099c60efa033f7f1bc08.zip | |
* test/ruby/test_require.rb (test_require_too_long_filename):
Kernel#require does not use dln_find_file_r (at r18242).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_require.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 497167819..a5f453a05 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -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 |
