]> https://gitweb.dealii.org/ - dealii.git/commitdiff
tests: timer_04 and _05 bug 7445/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 15 Nov 2018 19:49:38 +0000 (14:49 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 15 Nov 2018 19:49:38 +0000 (14:49 -0500)
These two tests are sometimes randomly failing. Maybe this fixes it?

tests/base/timer_04.cc
tests/base/timer_05.cc

index b611652b680c0cd61ab50f7e8d063feb6f207ee6..5e1cf9023a973aa57617becd122c171444f89f9e 100644 (file)
@@ -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);
index ca95ce7fbff3aeed656103bab97c9ee87534af8e..b43b5bd00b50a651255ed283e675e29637efec42 100644 (file)
@@ -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());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.