From 80f083f5b4d5c5bbf9c29c58aa3f657e6230293d Mon Sep 17 00:00:00 2001 From: Alex Campbell Date: Fri, 20 Aug 2021 10:08:18 -0400 Subject: [PATCH] Fix #1843, Add Time Clock Test --- modules/cfe_testcase/src/time_current_test.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/cfe_testcase/src/time_current_test.c b/modules/cfe_testcase/src/time_current_test.c index 901e6ca7c..8a8acab5b 100644 --- a/modules/cfe_testcase/src/time_current_test.c +++ b/modules/cfe_testcase/src/time_current_test.c @@ -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"); }