From 949cf3b88f8cefa292265cb4cc8b0a673d855732 Mon Sep 17 00:00:00 2001 From: "daniel.m.knutsen@mail.nasa.gov" Date: Fri, 28 Jun 2024 14:46:03 -0400 Subject: [PATCH] Fix 2572, CFE_TIME unit test failure when CFE_MISSION_TIME_AT_TONE_WILL_BE set to true --- modules/time/ut-coverage/time_UT.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/time/ut-coverage/time_UT.c b/modules/time/ut-coverage/time_UT.c index f06ee008a..36b1a65ad 100644 --- a/modules/time/ut-coverage/time_UT.c +++ b/modules/time/ut-coverage/time_UT.c @@ -1081,7 +1081,7 @@ void Test_External(void) /* Test setting time data from MET (external source, state set) */ UT_InitData(); CFE_TIME_Global.ClockSource = CFE_TIME_SourceSelect_EXTERNAL; - CFE_TIME_Global.ClockSetState = CFE_TIME_SetState_WAS_SET; + CFE_TIME_Global.ClockSetState = CFE_TIME_SetState_NOT_SET; settime.Seconds = 10; settime.Subseconds = 0; CFE_TIME_Global.ExternalCount = 0; @@ -1179,7 +1179,7 @@ void Test_External(void) /* Test setting time data from GPS (external source, state set) */ UT_InitData(); CFE_TIME_Global.ClockSource = CFE_TIME_SourceSelect_EXTERNAL; - CFE_TIME_Global.ClockSetState = CFE_TIME_SetState_WAS_SET; + CFE_TIME_Global.ClockSetState = CFE_TIME_SetState_NOT_SET; settime.Seconds = 10; settime.Subseconds = 0; CFE_TIME_Global.ExternalCount = 0; @@ -1279,7 +1279,7 @@ void Test_External(void) /* Test setting time data from Time (external source, state set) */ UT_InitData(); CFE_TIME_Global.ClockSource = CFE_TIME_SourceSelect_EXTERNAL; - CFE_TIME_Global.ReferenceState[0].ClockSetState = CFE_TIME_SetState_WAS_SET; + CFE_TIME_Global.ReferenceState[0].ClockSetState = CFE_TIME_SetState_NOT_SET; settime.Seconds = 10; settime.Subseconds = 0; CFE_TIME_Global.ExternalCount = 0;