diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-01-25 19:48:10 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-01-25 19:48:10 +0900 |
commit | 4396ced07dca5599c022a7e86e8f046915982087 (patch) | |
tree | 3ed147cde14cb4c15a8ed23d8fee4b0a073c0263 /spec | |
parent | b4711a0fa0d0a8d9a01ac4f9ac1051f192b93cf2 (diff) |
spec/ruby/core/process/times_spec.rb: add an output code for debugging
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/process/times_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/ruby/core/process/times_spec.rb b/spec/ruby/core/process/times_spec.rb index 35a7f5b34c..28896a96ff 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 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 |