1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/lib
normal e6e292121a 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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-06-03 01:04:30 +00:00
..
-test- -test-/integer 2016-05-22 07:27:02 +00:00
minitest fix up r57167 2017-05-10 23:52:14 +00:00
test test: attempt to reduce failures in assert_cpu_usage_low 2017-06-03 01:04:30 +00:00
envutil.rb test_rubyoptions.rb: ruby-runner sets $0 to install name now 2017-05-30 11:59:26 +00:00
find_executable.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
iseq_loader_checker.rb follow r53691 2016-02-02 13:01:09 +00:00
leakchecker.rb leakchecker.rb: get rid of uninitialized Tempfile 2017-01-27 05:01:18 +00:00
memory_status.rb memory_status.c: system call 2016-10-08 01:34:27 +00:00
profile_test_all.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
tracepointchecker.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
with_different_ofs.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
zombie_hunter.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00