1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/-ext-/bug_reporter/test_bug_reporter.rb
nobu c38b4a9b3d test_bug_reporter.rb: remove core
* test/-ext-/bug_reporter/test_bug_reporter.rb (test_bug_reporter_add):
  remove expected core file to get rid of false error in chkbuild.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-27 00:32:37 +00:00

17 lines
555 B
Ruby

require 'test/unit'
require 'tmpdir'
require_relative "../../ruby/envutil"
class TestBugReporter < Test::Unit::TestCase
def test_bug_reporter_add
expected_stderr = /Sample bug reporter: 12345/
tmpdir = Dir.mktmpdir
assert_in_out_err(["--disable-gems", "-r-test-/bug_reporter/bug_reporter",
"-C", tmpdir],
"register_sample_bug_reporter(12345); Process.kill :SEGV, $$",
[],
expected_stderr, nil)
ensure
FileUtils.rm_rf(tmpdir) if tmpdir
end
end