Skip to content

Commit

Permalink
Fix 2572, CFE_TIME unit test failure when CFE_MISSION_TIME_AT_TONE_WI…
Browse files Browse the repository at this point in the history
…LL_BE set to true
  • Loading branch information
dmknutsen committed Jun 28, 2024
1 parent 505baa1 commit 949cf3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/time/ut-coverage/time_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 949cf3b

Please sign in to comment.