Skip to content

Commit

Permalink
* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):
Browse files Browse the repository at this point in the history
	  Added -w option because too long path error don't output a message
	  by default since r30660. [Bug ruby#4336] [ruby-dev:43134]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kosaki committed Jan 28, 2011
1 parent 6526985 commit bacc7e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jan 28 16:19:38 2011 KOSAKI Motohiro <[email protected]>

* 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 <[email protected]>

* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2,3}):
Expand Down
4 changes: 2 additions & 2 deletions test/ruby/test_require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_require_path_home_1

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")
Expand All @@ -65,7 +65,7 @@ def test_require_path_home_2

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")
Expand Down

0 comments on commit bacc7e6

Please sign in to comment.