[ruby-cvs:66177] normal:r59003 (trunk): test: attempt to reduce failures in assert_cpu_usage_low

normal at ruby-lang.org normal at ruby-lang.org
Sat Jun 3 10:04:30 JST 2017


normal	2017-06-03 10:04:30 +0900 (Sat, 03 Jun 2017)

  New Revision: 59003

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59003

  Log:
    test: attempt to reduce failures in assert_cpu_usage_low
    
    Try to make this test less fragile by taking into account
    the worst case kernel timing resolution.
    [ruby-core:81540]
    
    * test/lib/test/unit/assertions.rb (assert_cpu_usage_low):
      clamp measurement to minimum measurable time and warn
      about tests being too short to measure
    * test/ruby/test_io.rb (test_copy_stream_no_busy_wait):
      remove pct kwarg and rely on assert_cpu_usage_low defaults

  Modified files:
    trunk/test/lib/test/unit/assertions.rb
    trunk/test/ruby/test_io.rb


More information about the ruby-cvs mailing list