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

ruby-changes:32615

From: ko1 <ko1@a...>
Date: Thu, 23 Jan 2014 20:22:18 +0900 (JST)
Subject: [ruby-changes:32615] ko1:r44694 (trunk): * test/ruby/envutil.rb: try to wait a bit (0.1sec) when ruby process

ko1	2014-01-23 20:22:11 +0900 (Thu, 23 Jan 2014)

  New Revision: 44694

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

  Log:
    * test/ruby/envutil.rb: try to wait a bit (0.1sec) when ruby process
      exits by signals because some SEGV tests fail because of not enough
      error output.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/envutil.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44693)
+++ ChangeLog	(revision 44694)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jan 23 20:20:17 2014  Koichi Sasada  <ko1@a...>
+
+	* test/ruby/envutil.rb: try to wait a bit (0.1sec) when ruby process
+	  exits by signals because some SEGV tests fail because of not enough
+	  error output.
+
 Thu Jan 23 20:06:27 2014  Koichi Sasada  <ko1@a...>
 
 	* test/ruby/test_settracefunc.rb: check the target thread.
Index: test/ruby/envutil.rb
===================================================================
--- test/ruby/envutil.rb	(revision 44693)
+++ test/ruby/envutil.rb	(revision 44694)
@@ -282,6 +282,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L282
       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/

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