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:
@@ -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 ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user