diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/envutil.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 2fc6143176..f0d5c2f8f6 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -127,7 +127,7 @@ module Test end LANG_ENVS = %w"LANG LC_ALL LC_CTYPE" - def assert_in_out_err(args, test_stdin = "", test_stdout = "", test_stderr = "", message = nil) + def assert_in_out_err(args, test_stdin = "", test_stdout = [], test_stderr = [], message = nil) in_c, in_p = IO.pipe out_p, out_c = IO.pipe err_p, err_c = IO.pipe diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 4e78b4c827..d4143cffb8 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -317,7 +317,7 @@ class TestRubyOptions < Test::Unit::TestCase rubybin = Regexp.quote(EnvUtil.rubybin) pat = /\A#{rubybin}:.* -- #{Regexp.quote(notexist)} \(LoadError\)\Z/ assert_equal(false, File.exist?(notexist)) - assert_in_out_err(["-r", notexist, "-ep"], [], [], pat) - assert_in_out_err([notexist], [], [], pat) + assert_in_out_err(["-r", notexist, "-ep"], "", [], pat) + assert_in_out_err([notexist], "", [], pat) end end |