Call Simulator::Destroy () before running simulator unit tests, to force time to start from zero (some tests check for absolute times)

This commit is contained in:
Gustavo J. A. M. Carneiro
2007-09-21 18:04:53 +01:00
parent 4b242b57c8
commit c8d4f578af

View File

@@ -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 ())
{