Skip to content

Commit

Permalink
Fix #1843, Add Time Clock Test
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzaben committed Aug 23, 2021
1 parent 5e41330 commit 80f083f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/cfe_testcase/src/time_current_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,16 @@ void TestGetTime(void)
UtAssert_True(TimeInRange(MET, Buf, difference), "MET (%s) = METSubSeconds (%s)", timeBuf1, timeBuf2);
}

void TestClock(void)
{
UtPrintf("Testing: CFE_TIME_GetClockState, CFE_TIME_GetClockInfo");

UtAssert_VOIDCALL(CFE_TIME_GetClockState());
UtAssert_VOIDCALL(CFE_TIME_GetClockInfo());
}

void TimeCurrentTestSetup(void)
{
UtTest_Add(TestGetTime, NULL, NULL, "Test Current Time");
UtTest_Add(TestClock, NULL, NULL, "Test Clock");
}

0 comments on commit 80f083f

Please sign in to comment.