From: Timo Heister Date: Thu, 15 Nov 2018 19:49:38 +0000 (-0500) Subject: tests: timer_04 and _05 bug X-Git-Tag: v9.1.0-rc1~559^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7445%2Fhead;p=dealii.git tests: timer_04 and _05 bug These two tests are sometimes randomly failing. Maybe this fixes it? --- diff --git a/tests/base/timer_04.cc b/tests/base/timer_04.cc index b611652b68..5e1cf9023a 100644 --- a/tests/base/timer_04.cc +++ b/tests/base/timer_04.cc @@ -46,7 +46,7 @@ main() const double old_wall_time = t.wall_time(); AssertThrow(old_wall_time > 0., ExcInternalError()); - const double old_cpu_time = t.wall_time(); + const double old_cpu_time = t.cpu_time(); AssertThrow(old_cpu_time > 0., ExcInternalError()); burn(50); diff --git a/tests/base/timer_05.cc b/tests/base/timer_05.cc index ca95ce7fbf..b43b5bd00b 100644 --- a/tests/base/timer_05.cc +++ b/tests/base/timer_05.cc @@ -74,7 +74,7 @@ test_timer(Timer &t) const double old_wall_time = t.wall_time(); AssertThrow(old_wall_time > 0., ExcInternalError()); - const double old_cpu_time = t.wall_time(); + const double old_cpu_time = t.cpu_time(); AssertThrow(old_cpu_time > 0., ExcInternalError()); assert_min_max_avg_invalid(t.get_data()); assert_min_max_avg_invalid(t.get_total_data());