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:
parent
7994aaa1f3
commit
45ea81a492
1 changed files with 9 additions and 5 deletions
|
@ -27,11 +27,15 @@ class TestRequire < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
INPUT
|
INPUT
|
||||||
|
|
||||||
assert_in_out_err(["-S", "foo/" * 10000 + "foo"], "") do |r, e|
|
begin
|
||||||
assert_equal([], r)
|
assert_in_out_err(["-S", "foo/" * 10000 + "foo"], "") do |r, e|
|
||||||
assert_operator(2, :<=, e.size)
|
assert_equal([], r)
|
||||||
assert_equal("openpath: pathname too long (ignored)", e.first)
|
assert_operator(2, :<=, e.size)
|
||||||
assert_match(/\(LoadError\)/, e.last)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue