ruby-changes:31788
From: nobu <ko1@a...>
Date: Wed, 27 Nov 2013 09:32:41 +0900 (JST)
Subject: [ruby-changes:31788] nobu:r43867 (trunk): test_bug_reporter.rb: remove core
nobu 2013-11-27 09:32:37 +0900 (Wed, 27 Nov 2013) New Revision: 43867 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43867 Log: 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. Modified files: trunk/test/-ext-/bug_reporter/test_bug_reporter.rb Index: test/-ext-/bug_reporter/test_bug_reporter.rb =================================================================== --- test/-ext-/bug_reporter/test_bug_reporter.rb (revision 43866) +++ test/-ext-/bug_reporter/test_bug_reporter.rb (revision 43867) @@ -1,9 +1,17 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/bug_reporter/test_bug_reporter.rb#L1 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/