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

ruby-changes:59803

From: Yusuke <ko1@a...>
Date: Sat, 25 Jan 2020 19:49:13 +0900 (JST)
Subject: [ruby-changes:59803] 4396ced07d (master): spec/ruby/core/process/times_spec.rb: add an output code for debugging

https://git.ruby-lang.org/ruby.git/commit/?id=4396ced07d

From 4396ced07dca5599c022a7e86e8f046915982087 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 25 Jan 2020 19:48:10 +0900
Subject: spec/ruby/core/process/times_spec.rb: add an output code for
 debugging


diff --git a/spec/ruby/core/process/times_spec.rb b/spec/ruby/core/process/times_spec.rb
index 35a7f5b..28896a9 100644
--- a/spec/ruby/core/process/times_spec.rb
+++ b/spec/ruby/core/process/times_spec.rb
@@ -23,7 +23,14 @@ describe "Process.times" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/times_spec.rb#L23
 
         times = 1000.times.map { Process.times }
         times.count { |t| !('%.6f' % t.utime).end_with?('000') }.should > 0
-        times.count { |t| !('%.6f' % t.stime).end_with?('000') }.should > 0
+        n = times.count { |t| !('%.6f' % t.stime).end_with?('000') }
+        if n == 0
+          # temporal debugging code for FreeBSD: https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd11zfs/ruby-master/log/20200125T093004Z.fail.html.gz
+          puts "DEBUG OUTPUT"
+          p(*times)
+          puts "DEBUG OUTPUT END"
+        end
+        n.should > 0
       end
     end
   end
-- 
cgit v0.10.2


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

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