ruby-changes:32140
From: nobu <ko1@a...>
Date: Sun, 15 Dec 2013 07:34:50 +0900 (JST)
Subject: [ruby-changes:32140] nobu:r44219 (trunk): envutil.rb: reduce wait
nobu 2013-12-15 07:34:47 +0900 (Sun, 15 Dec 2013) New Revision: 44219 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44219 Log: envutil.rb: reduce wait * test/ruby/envutil.rb (EnvUtil.diagnostic_reports): reduce watching interval. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 44218) +++ test/ruby/envutil.rb (revision 44219) @@ -166,8 +166,8 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L166 timeformat = DIAGNOSTIC_REPORTS_TIMEFORMAT pat = "#{path}/#{cmd}_#{now.strftime(timeformat)}[-_]*.crash" first = true - 3.times do - first ? (first = false) : sleep(1) + 30.times do + first ? (first = false) : sleep(0.1) Dir.glob(pat) do |name| log = File.read(name) rescue next if /\AProcess:\s+#{cmd} \[#{pid}\]$/ =~ log -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/