Skip to content

Commit 2d04be3

Browse files
authored
Merge pull request #2647 from nasa/integration-candidate
cFE Integration candidate: Equuleus-rc1+dev28
2 parents fa57a77 + fe9b659 commit 2d04be3

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Development Build: equuleus-rc1+dev243
4+
- 'Fix #2645, fix warning error in evs_ut'
5+
- See: <https://github.com/nasa/cFE/pull/2646>
6+
7+
38
## Development Build: equuleus-rc1+dev239
49
- address sanitizer issue in coverage-evs-ALL
510
- See <https://github.com/nasa/cFE/pull/2643>

modules/evs/ut-coverage/evs_UT.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,15 @@ void Test_Init(void)
293293
CFE_EVS_EnableAppEventTypeCmd_t appbitcmd;
294294

295295
CFE_SB_Buffer_t *bufPtr;
296-
CFE_EVS_NoopCmd_t testMsg;
297-
296+
union
297+
{
298+
CFE_SB_Buffer_t SbBuf;
299+
CFE_EVS_NoopCmd_t Noop;
300+
} TestMsg;
301+
298302
UtPrintf("Begin Test Init");
299303

304+
memset(&TestMsg, 0, sizeof(TestMsg));
300305
memset(&bitmaskcmd, 0, sizeof(bitmaskcmd));
301306
memset(&appbitcmd, 0, sizeof(appbitcmd));
302307

@@ -325,7 +330,7 @@ void Test_Init(void)
325330
/* Set unexpected message ID */
326331
UT_SetupBasicMsgDispatch(&UT_TPID_CFE_EVS_INVALID_MID, 0, true);
327332

328-
bufPtr = (CFE_SB_Buffer_t *)&testMsg; /* Fake Test Message */
333+
bufPtr = &TestMsg.SbBuf; /* Fake Test Message */
329334
UT_SetDataBuffer(UT_KEY(CFE_SB_ReceiveBuffer), &bufPtr, sizeof(bufPtr), false);
330335

331336
UT_EVS_DoGenericCheckEvents(CFE_EVS_TaskMain, &UT_EVS_EventBuf);

0 commit comments

Comments
 (0)