From 94cc88c8d9803b1e81d06c595e252d0ad0a52c44 Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 26 Oct 2012 20:02:06 +0000 Subject: [PATCH] update test (this test used to print nan/-nan on different compilers, now TimerOutput is fixed to just print 0.0) git-svn-id: https://svn.dealii.org/trunk@27219 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/timer_02.cc | 6 ++++-- tests/base/timer_02/cmp/generic | 12 +----------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/tests/base/timer_02.cc b/tests/base/timer_02.cc index d10d2091c6..55aba7f305 100644 --- a/tests/base/timer_02.cc +++ b/tests/base/timer_02.cc @@ -31,12 +31,14 @@ int main () deallog.depth_console(0); deallog.threshold_double(1.e-10); + { + TimerOutput t(logfile, TimerOutput::summary, TimerOutput::cpu_times); t.enter_subsection("hi"); t.leave_subsection("hi"); - - t.print_summary(); + } + deallog << "ok" << std::endl; } diff --git a/tests/base/timer_02/cmp/generic b/tests/base/timer_02/cmp/generic index ba2ae39c87..0d803b3caa 100644 --- a/tests/base/timer_02/cmp/generic +++ b/tests/base/timer_02/cmp/generic @@ -6,17 +6,7 @@ | | | | | Section | no. calls | CPU time | % of total | +---------------------------------+-----------+------------+------------+ -| hi | 1 | 0.00s | nan% | +| hi | 1 | 0.00s | 0.0% | +---------------------------------+-----------+------------+------------+ DEAL::ok - - -+---------------------------------------------+------------+------------+ -| Total CPU time elapsed since start | 0.00s | | -| | | | -| Section | no. calls | CPU time | % of total | -+---------------------------------+-----------+------------+------------+ -| hi | 1 | 0.00s | nan% | -+---------------------------------+-----------+------------+------------+ - -- 2.39.5