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):
increase path length, because MAXPATHLEN is defined as 4096 on linux. * test/ruby/test_require.rb (test_require_path_home_1): ditto. * test/ruby/test_require.rb (test_require_path_home_2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f82f5216ac
commit
dc5eb8970c
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
Mon Mar 14 21:20:44 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||||
|
|
||||||
|
* test/ruby/test_require.rb (test_require_too_long_filename):
|
||||||
|
increase path length, because MAXPATHLEN is defined as 4096 on linux.
|
||||||
|
|
||||||
|
* test/ruby/test_require.rb (test_require_path_home_1): ditto.
|
||||||
|
|
||||||
|
* test/ruby/test_require.rb (test_require_path_home_2): ditto.
|
||||||
|
|
||||||
Mon Mar 14 19:54:37 2011 Tanaka Akira <akr@fsij.org>
|
Mon Mar 14 19:54:37 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
|
* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
|
||||||
|
|
|
@ -29,7 +29,7 @@ class TestRequire < Test::Unit::TestCase
|
||||||
INPUT
|
INPUT
|
||||||
|
|
||||||
begin
|
begin
|
||||||
assert_in_out_err(["-S", "-w", "foo/" * 1000 + "foo"], "") do |r, e|
|
assert_in_out_err(["-S", "-w", "foo/" * 1024 + "foo"], "") do |r, e|
|
||||||
assert_equal([], r)
|
assert_equal([], r)
|
||||||
assert_operator(2, :<=, e.size)
|
assert_operator(2, :<=, e.size)
|
||||||
assert_match(/warning: openpath: pathname too long \(ignored\)/, e.first)
|
assert_match(/warning: openpath: pathname too long \(ignored\)/, e.first)
|
||||||
|
@ -51,7 +51,7 @@ class TestRequire < Test::Unit::TestCase
|
||||||
pathname_too_long = /pathname too long \(ignored\).*\(LoadError\)/m
|
pathname_too_long = /pathname too long \(ignored\).*\(LoadError\)/m
|
||||||
|
|
||||||
ENV["RUBYPATH"] = "~"
|
ENV["RUBYPATH"] = "~"
|
||||||
ENV["HOME"] = "/foo" * 1000
|
ENV["HOME"] = "/foo" * 1024
|
||||||
assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
|
assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
|
||||||
|
|
||||||
ensure
|
ensure
|
||||||
|
@ -63,7 +63,7 @@ class TestRequire < Test::Unit::TestCase
|
||||||
env_rubypath, env_home = ENV["RUBYPATH"], ENV["HOME"]
|
env_rubypath, env_home = ENV["RUBYPATH"], ENV["HOME"]
|
||||||
pathname_too_long = /pathname too long \(ignored\).*\(LoadError\)/m
|
pathname_too_long = /pathname too long \(ignored\).*\(LoadError\)/m
|
||||||
|
|
||||||
ENV["RUBYPATH"] = "~" + "/foo" * 1000
|
ENV["RUBYPATH"] = "~" + "/foo" * 1024
|
||||||
ENV["HOME"] = "/foo"
|
ENV["HOME"] = "/foo"
|
||||||
assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
|
assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue