Skip to content

Commit

Permalink
Merge pull request #2573 from dmknutsen:Issue_2572
Browse files Browse the repository at this point in the history
Fix 2572, CFE_TIME unit test failure when CFE_MISSION_TIME_AT_TONE_WILL_BE set to true
  • Loading branch information
dzbaker committed Jul 15, 2024
2 parents 00fe82a + 949cf3b commit 63cf291
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 63cf291

Please sign in to comment.