1
0
Fork 0
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): too long

commandline may be rejected by OS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-10-28 12:03:14 +00:00
parent 7994aaa1f3
commit 45ea81a492

View file

@ -27,11 +27,15 @@ class TestRequire < Test::Unit::TestCase
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)
begin
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
rescue Errno::EINVAL
# too long commandline may be blocked by OS.
end
end