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

ruby-changes:40238

From: naruse <ko1@a...>
Date: Wed, 28 Oct 2015 14:40:10 +0900 (JST)
Subject: [ruby-changes:40238] naruse:r52319 (trunk): write in shroter

naruse	2015-10-28 14:40:04 +0900 (Wed, 28 Oct 2015)

  New Revision: 52319

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

  Log:
    write in shroter

  Modified files:
    trunk/test/ruby/test_gc.rb
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 52318)
+++ test/ruby/test_gc.rb	(revision 52319)
@@ -347,11 +347,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L347
       end
     end;
     opts = {signal: :SEGV}
-    begin
-      _, max = Process.getrlimit(:CORE)
-      opts[:rlimit_core] = [0,max]
-    rescue NotImplementedError
-    end
+    opts[:rlimit_core] = 0 if defined?(Process::RLIMIT_CORE)
     out, err, status = assert_in_out_err(["-e", src], "", [], [], bug10595, opts) do |*result|
       break result
     end
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 52318)
+++ test/ruby/test_process.rb	(revision 52319)
@@ -1364,8 +1364,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1364
     return unless Signal.list.include?("QUIT")
 
     with_tmpchdir do
-      _, max = Process.getrlimit(:CORE)
-      s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, :rlimit_core=>[0,max])
+      s = assert_in_out_err([], "Process.kill(:SIGQUIT, $$);sleep 30", //, //, rlimit_core: 0)
       assert_equal([false, true, false, nil],
                    [s.exited?, s.signaled?, s.stopped?, s.success?],
                    "[s.exited?, s.signaled?, s.stopped?, s.success?]")

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

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