1
0
Fork 0

Fix test for Jano’s dtRemainder init change

This commit is contained in:
James Turner 2021-03-07 13:07:56 +00:00
parent 7e074f6b8b
commit 4ca929fa61

View file

@ -96,6 +96,12 @@ void TimeManagerTests::testFreezeUnfreeze()
// first run: values are zero // first run: values are zero
timeManager->computeTimeDeltas(simDt, realDt); timeManager->computeTimeDeltas(simDt, realDt);
// test hack: force dtRemainder to zero so we aren't affected by the
// system -> stread clock offset in our test assertions. Without this,
// depending on exaclty when thetest suite is run, we would get different
// results
timeManager->_dtRemainder = 0.0;
SGTimeStamp n; SGTimeStamp n;
CPPUNIT_ASSERT_DOUBLES_EQUAL(0.0, simDt, 1.0e-6); CPPUNIT_ASSERT_DOUBLES_EQUAL(0.0, simDt, 1.0e-6);