summaryrefslogtreecommitdiff
path: root/test/benchmark
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-01 04:33:00 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-01 04:33:00 +0000
commit6e2a194fa71f136f5911e8b3dc60ef0aae962ad8 (patch)
tree3030a769f80c2ea259df0a153a407cb8fba7393c /test/benchmark
parentec84bfc9e3d11a3b1dbebcaf4d1ddf1357307513 (diff)
* 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
Diffstat (limited to 'test/benchmark')
-rw-r--r--test/benchmark/test_benchmark.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/benchmark/test_benchmark.rb b/test/benchmark/test_benchmark.rb
index e3305aa..8e369fd 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