diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-01 04:33:00 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-01 04:33:00 +0000 |
commit | 6e2a194fa71f136f5911e8b3dc60ef0aae962ad8 (patch) | |
tree | 3030a769f80c2ea259df0a153a407cb8fba7393c | |
parent | ec84bfc9e3d11a3b1dbebcaf4d1ddf1357307513 (diff) | |
download | ruby-6e2a194fa71f136f5911e8b3dc60ef0aae962ad8.tar.gz |
* test/benchmark/test_benchmark.rb (#capture_bench_output):
Added explict sleep. Windows have imprecise time support.
Thus Tms.new.Add!{} may be or may be not equal 0. The
test failure started since r30747.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | test/benchmark/test_benchmark.rb | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Tue Feb 1 13:20:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * test/benchmark/test_benchmark.rb (#capture_bench_output): + Added explict sleep. Windows have imprecise time support. + Thus Tms.new.Add!{} may be or may be not equal 0. The + test failure started since r30747. + Tue Feb 1 11:03:47 2011 Ryan Davis <ryan@lust.local> * lib/rubygems*: Import rubygems 1.5.0 (released version @ 1fb59d0) diff --git a/test/benchmark/test_benchmark.rb b/test/benchmark/test_benchmark.rb index e3305aa0ba..8e369fdb1f 100644 --- a/test/benchmark/test_benchmark.rb +++ b/test/benchmark/test_benchmark.rb @@ -123,7 +123,7 @@ describe Benchmark do it '[ruby-dev:40906] can add in-place the time of execution of the block given' do t = Benchmark::Tms.new t.real.must_equal 0 - t.add! {} + t.add! { sleep 0.1 } t.real.wont_equal 0 end end |