summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-15 14:36:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-15 14:36:51 +0000
commitc804e6217cef9fbfb71c2e0d5785d295360478f9 (patch)
tree364ffea249a0944ef38a1fa0b433fcf6c44c122e
parentbddde8eee32d1926ce6202f2697b78d0cda737f4 (diff)
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
-rw-r--r--test/ruby/test_gc.rb2
1 files changed, 1 insertions, 1 deletions
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