From c804e6217cef9fbfb71c2e0d5785d295360478f9 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 15 Jan 2014 14:36:51 +0000 Subject: test_gc.rb: relax assertion * test/ruby/test_gc.rb (test_profiler_total_time): GC time may be shorter than the timer resolution. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 0dd002ddc0..83619c413e 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -234,7 +234,7 @@ class TestGc < Test::Unit::TestCase GC::Profiler.clear GC.start - assert_operator(GC::Profiler.total_time, :>, 0) + assert_operator(GC::Profiler.total_time, :>=, 0) ensure GC::Profiler.disable end -- cgit v1.2.3