diff options
Diffstat (limited to 'test/ruby/test_require.rb')
-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 |