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

ruby-changes:37759

From: nobu <ko1@a...>
Date: Wed, 4 Mar 2015 10:22:05 +0900 (JST)
Subject: [ruby-changes:37759] nobu:r49840 (trunk): envutil.rb: no need to sleep

nobu	2015-03-04 10:22:01 +0900 (Wed, 04 Mar 2015)

  New Revision: 49840

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

  Log:
    envutil.rb: no need to sleep
    
    * test/lib/envutil.rb (assert_in_out_err): remove sleep to catch
      the just time, and it is unnecessary as diagnostic_reports waits
      for 3 seconds.

  Modified files:
    trunk/test/lib/envutil.rb
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 49839)
+++ test/lib/envutil.rb	(revision 49840)
@@ -331,7 +331,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L331
       def assert_in_out_err(args, test_stdin = "", test_stdout = [], test_stderr = [], message = nil, **opt)
         stdout, stderr, status = EnvUtil.invoke_ruby(args, test_stdin, true, true, **opt)
         if signo = status.termsig
-          sleep 0.1
           EnvUtil.diagnostic_reports(Signal.signame(signo), EnvUtil.rubybin, status.pid, Time.now)
         end
         if block_given?

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

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