* test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):

Added -w option because too long path error don't output a message
	  by default since r30660. [Bug #4336] [ruby-dev:43134]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-01-28 07:31:44 +00:00
Родитель bacc7e6a42
Коммит a3d861ef2f
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Fri Jan 28 16:30:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):
Added -w option because too long path error don't output a message
by default since r30660. [Bug #4336] [ruby-dev:43134]
Fri Jan 28 16:19:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Fri Jan 28 16:19:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}): * test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):

Просмотреть файл

@ -29,10 +29,10 @@ class TestRequire < Test::Unit::TestCase
INPUT INPUT
begin begin
assert_in_out_err(["-S", "foo/" * 2500 + "foo"], "") do |r, e| assert_in_out_err(["-S", "-w", "foo/" * 2500 + "foo"], "") do |r, e|
assert_equal([], r) assert_equal([], r)
assert_operator(2, :<=, e.size) assert_operator(2, :<=, e.size)
assert_equal("openpath: pathname too long (ignored)", e.first) assert_match(/warning: openpath: pathname too long \(ignored\)/, e.first)
assert_match(/\(LoadError\)/, e.last) assert_match(/\(LoadError\)/, e.last)
end end
rescue Errno::EINVAL rescue Errno::EINVAL