From 261f29e686295949a92ab480b8374cc769d0553f Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 15 Nov 2018 14:49:38 -0500 Subject: [PATCH] tests: timer_04 and _05 bug These two tests are sometimes randomly failing. Maybe this fixes it? --- tests/base/timer_04.cc | 2 +- tests/base/timer_05.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.39.5