* 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
This commit is contained in:
kosaki 2011-02-01 04:33:00 +00:00
Родитель ec84bfc9e3
Коммит 6e2a194fa7
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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)

Просмотреть файл

@ -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