summaryrefslogtreecommitdiff
path: root/test/-ext-/bug_reporter/test_bug_reporter.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 00:32:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-27 00:32:37 +0000
commitc38b4a9b3d4b99cba59a9953c53f1f736e40a60b (patch)
treea2f931d43f07ac44ded114cc9dec7ab850b7d3cf /test/-ext-/bug_reporter/test_bug_reporter.rb
parentcbb56e30a4bc3d0f1446bdd3fb41f14a362e94fb (diff)
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
Diffstat (limited to 'test/-ext-/bug_reporter/test_bug_reporter.rb')
-rw-r--r--test/-ext-/bug_reporter/test_bug_reporter.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
index 01f8fdc933..2e5e332074 100644
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
@@ -1,9 +1,17 @@
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/
- assert_in_out_err(["--disable-gems", "-r-test-/bug_reporter/bug_reporter", "-e", "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"], "", [], expected_stderr, nil)
+ 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