From c8d4f578af9cef3b731c24e86ec24c5317cd4308 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Fri, 21 Sep 2007 18:04:53 +0100 Subject: [PATCH] Call Simulator::Destroy () before running simulator unit tests, to force time to start from zero (some tests check for absolute times) --- src/simulator/simulator.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/simulator/simulator.cc b/src/simulator/simulator.cc index 5002cec81..e00f548b5 100644 --- a/src/simulator/simulator.cc +++ b/src/simulator/simulator.cc @@ -862,8 +862,7 @@ SimulatorTests::RunTests (void) { bool result = true; - Simulator::Run (); // flush out any pending events before running our tests - + Simulator::Destroy (); Simulator::SetLinkedList (); if (!RunOneTest ()) {