summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-03 08:19:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-03 08:19:43 +0000
commit1e4550ac03ac72c3229eb6eca446059616a02b92 (patch)
tree52a701cf31cacd8283a73d471a5cb8caf5c68a06 /test/ruby/test_rubyoptions.rb
parentf73a92e46ba315a641da48ea0ccf09f0d228509d (diff)
test_rubyoptions.rb: use assert_in_out_err
* test/ruby/test_rubyoptions.rb (assert_segv): assert_in_out_err with the pattern list instead of invoke_ruby. * test/-ext-/bug_reporter/test_bug_reporter.rb (test_bug_reporter_add): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index b1ecef402a..ab0901d1db 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -552,18 +552,9 @@ class TestRubyOptions < Test::Unit::TestCase
def assert_segv(args, message=nil)
test_stdin = ""
opt = SEGVTest::ExecOptions.dup
+ list = SEGVTest::ExpectedStderrList
- _, stderr, status = EnvUtil.invoke_ruby(args, test_stdin, false, true, **opt)
- stderr.force_encoding("ASCII-8BIT")
-
- if signo = status.termsig
- sleep 0.1
- EnvUtil.diagnostic_reports(Signal.signame(signo), EnvUtil.rubybin, status.pid, Time.now)
- end
-
- assert_pattern_list(SEGVTest::ExpectedStderrList, stderr, message)
-
- status
+ assert_in_out_err(args, test_stdin, //, list, encoding: "ASCII-8BIT", **opt)
end
def test_segv_test