[前][次][番号順一覧][スレッド一覧]

ruby-changes:32329

From: nobu <ko1@a...>
Date: Wed, 25 Dec 2013 16:28:11 +0900 (JST)
Subject: [ruby-changes:32329] nobu:r44408 (trunk): test_rubyoptions.rb: remove core

nobu	2013-12-25 16:28:05 +0900 (Wed, 25 Dec 2013)

  New Revision: 44408

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44408

  Log:
    test_rubyoptions.rb: remove core
    
    * test/ruby/test_rubyoptions.rb (test_segv_loaded_features): run
      SEGV test in a temproray directory so that core files may not be
      left, not to confuse chkbuild.

  Modified files:
    trunk/test/ruby/test_rubyoptions.rb
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 44407)
+++ test/ruby/test_rubyoptions.rb	(revision 44408)
@@ -545,14 +545,19 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L545
     opts = SEGVTest::ExecOptions.dup
 
     bug7402 = '[ruby-core:49573]'
-    status = assert_in_out_err(['-e', 'class Bogus; def to_str; exit true; end; end',
-                                '-e', '$".clear',
-                                '-e', '$".unshift Bogus.new',
-                                '-e', '(p $"; abort) unless $".size == 1',
-                                '-e', 'Process.kill :SEGV, $$'],
-                               "", [], /#<Bogus:/,
-                               nil,
-                               opts)
+
+    status = Dir.mktmpdir("segv_test") do |tmpdir|
+      assert_in_out_err(['-e', 'class Bogus; def to_str; exit true; end; end',
+                         '-e', '$".clear',
+                         '-e', '$".unshift Bogus.new',
+                         '-e', '(p $"; abort) unless $".size == 1',
+                         '-e', 'Process.kill :SEGV, $$',
+                         '-C', tmpdir,
+                        ],
+                        "", [], /#<Bogus:/,
+                        nil,
+                        opts)
+    end
     assert_not_predicate(status, :success?, "segv but success #{bug7402}")
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]