summaryrefslogtreecommitdiff
path: root/test/-ext-/bug_reporter
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/bug_reporter')
-rw-r--r--test/-ext-/bug_reporter/test_bug_reporter.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
index 6ac5b8f995..e68adeef06 100644
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
@@ -16,9 +16,7 @@ class TestBugReporter < Test::Unit::TestCase
args = ["--disable-gems", "-r-test-/bug_reporter/bug_reporter",
"-C", tmpdir]
stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
- _, stderr, status = EnvUtil.invoke_ruby(args, stdin, false, true)
- stderr.force_encoding("ASCII-8BIT")
- assert_pattern_list(expected_stderr, stderr)
+ assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT")
ensure
FileUtils.rm_rf(tmpdir) if tmpdir
end