diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-28 07:31:44 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-28 07:31:44 +0000 |
commit | a3d861ef2fb6fa47d7244d26b6de1821d6ee4010 (patch) | |
tree | 4e71be1baf7ec1e5a9b99ae47407b830bd7dae92 /test/ruby | |
parent | bacc7e6a42073d60107e4a385a40807b2ba52e91 (diff) | |
download | ruby-a3d861ef2fb6fa47d7244d26b6de1821d6ee4010.tar.gz |
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_require.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index f9cda4ea44..c764939b1e 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -29,10 +29,10 @@ class TestRequire < Test::Unit::TestCase INPUT 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_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) end rescue Errno::EINVAL |