* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):

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@30704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-01-28 07:21:38 +00:00
Родитель 6526985522
Коммит bacc7e6a42
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -1,3 +1,9 @@
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}):
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:04:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2,3}):

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

@ -52,7 +52,7 @@ class TestRequire < Test::Unit::TestCase
ENV["RUBYPATH"] = "~"
ENV["HOME"] = "/foo" * 2500
assert_in_out_err(%w(-S test_ruby_test_require), "", [], pathname_too_long)
assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
ensure
env_rubypath ? ENV["RUBYPATH"] = env_rubypath : ENV.delete("RUBYPATH")
@ -65,7 +65,7 @@ class TestRequire < Test::Unit::TestCase
ENV["RUBYPATH"] = "~" + "/foo" * 2500
ENV["HOME"] = "/foo"
assert_in_out_err(%w(-S test_ruby_test_require), "", [], pathname_too_long)
assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
ensure
env_rubypath ? ENV["RUBYPATH"] = env_rubypath : ENV.delete("RUBYPATH")