From: heister Date: Fri, 13 Dec 2013 14:46:57 +0000 (+0000) Subject: timer 2 is annoying to test, fix that by not printing the timing information X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=410eb2ac107a9ec1dfdb66cad63b489ea7db541e;p=dealii-svn.git timer 2 is annoying to test, fix that by not printing the timing information git-svn-id: https://svn.dealii.org/trunk@31987 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/timer_02.cc b/tests/base/timer_02.cc index 8f6c6b5456..ee1ec3c864 100644 --- a/tests/base/timer_02.cc +++ b/tests/base/timer_02.cc @@ -36,8 +36,10 @@ int main () deallog.threshold_double(1.e-1); { - - TimerOutput t(logfile, TimerOutput::summary, TimerOutput::cpu_times); + + // use std::cout so that no output is saved to the logfile, because it + // is difficult to test (timing) + TimerOutput t(std::cout, TimerOutput::summary, TimerOutput::cpu_times); t.enter_subsection("hi"); t.leave_subsection("hi"); diff --git a/tests/base/timer_02.output b/tests/base/timer_02.output index 0d803b3caa..0de35217a9 100644 --- a/tests/base/timer_02.output +++ b/tests/base/timer_02.output @@ -1,12 +1,2 @@ - - -+---------------------------------------------+------------+------------+ -| Total CPU time elapsed since start | 0.00s | | -| | | | -| Section | no. calls | CPU time | % of total | -+---------------------------------+-----------+------------+------------+ -| hi | 1 | 0.00s | 0.0% | -+---------------------------------+-----------+------------+------------+ - DEAL::ok