Fix test for Jano’s dtRemainder init change
This commit is contained in:
parent
7e074f6b8b
commit
4ca929fa61
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue