Issue #8195 has been reported by hasari (Hiro Asari).

----------------------------------------
Bug #8195: Time-dependent tests
https://bugs.ruby-lang.org/issues/8195

Author: hasari (Hiro Asari)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.1.0dev (2013-03-28 trunk 39971) [x86_64-darwin12.3.0]


There are some tests that depend on timing of the execution, and fail sporadically.

I have not surveyed the entire suite, but one is pointed out in https://github.com/jruby/jruby/issues/618.

https://github.com/ruby/ruby/blob/v1_8_7_371/test/zlib/test_zlib.rb#L318
https://github.com/ruby/ruby/blob/v1_9_3_392/test/zlib/test_zlib.rb#L293
https://github.com/ruby/ruby/blob/v2_0_0_0/test/zlib/test_zlib.rb#L469

https://github.com/ruby/ruby/blob/6a23960/test/zlib/test_zlib.rb#L471

Perhaps defining a margin of error might be permissible.


-- 
http://bugs.ruby-lang.org/