Skip to content

Commit 4b3fedd

Browse files
authored
Merge pull request #2636 from nasa/integration-candidate
cFE Integration candidate: Equuleus-rc1+dev25
2 parents 3b4135a + 276cb41 commit 4b3fedd

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Development Build: equuleus-rc1+dev235
4+
- add initialization of table indices
5+
- See <https://github.com/nasa/cFE/pull/2633>
6+
37
## Development Build: equuleus-rc1+dev231
48
- Update Upload Artifact Version
59
- See <https://github.com/nasa/cFE/pull/2631>

modules/core_api/fsw/inc/cfe_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define CFE_VERSION_H
2727

2828
/* Development Build Macro Definitions */
29-
#define CFE_BUILD_NUMBER 231 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
29+
#define CFE_BUILD_NUMBER 235 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
3030
#define CFE_BUILD_BASELINE "equuleus-rc1" /**< @brief Development: Reference git tag for build number */
3131
#define CFE_BUILD_DEV_CYCLE "equuleus-rc2" /**< @brief Development: Release name for current development cycle */
3232
#define CFE_BUILD_CODENAME "Equuleus" /**< @brief: Development: Code name for the current build */

modules/tbl/fsw/src/cfe_tbl_task.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ int32 CFE_TBL_TaskInit(void)
164164
/*
165165
** Task startup event message
166166
*/
167-
CFE_Config_GetVersionString(VersionString, CFE_CFG_MAX_VERSION_STR_LEN, "cFE",
168-
CFE_SRC_VERSION, CFE_BUILD_CODENAME, CFE_LAST_OFFICIAL);
167+
CFE_Config_GetVersionString(VersionString, CFE_CFG_MAX_VERSION_STR_LEN, "cFE", CFE_SRC_VERSION, CFE_BUILD_CODENAME,
168+
CFE_LAST_OFFICIAL);
169169
Status = CFE_EVS_SendEvent(CFE_TBL_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, "cFE TBL Initialized: %s",
170170
VersionString);
171171

@@ -199,4 +199,7 @@ void CFE_TBL_InitData(void)
199199
/* Message ID is set when sent, so OK as 0 here */
200200
CFE_MSG_Init(CFE_MSG_PTR(CFE_TBL_Global.NotifyMsg.CommandHeader), CFE_SB_INVALID_MSG_ID,
201201
sizeof(CFE_TBL_Global.NotifyMsg));
202+
203+
CFE_TBL_Global.LastValidationResultId = CFE_ResourceId_FromInteger(CFE_TBL_VALRESULTID_BASE);
204+
CFE_TBL_Global.LastDumpCtrlBlockId = CFE_ResourceId_FromInteger(CFE_TBL_DUMPCTRLID_BASE);
202205
}

modules/tbl/ut-coverage/tbl_UT.c

+16-3
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ void Test_CFE_TBL_ValidateCmd(void)
783783
ValidateCmd.Payload.ActiveTableFlag = CFE_TBL_BufferSelect_ACTIVE;
784784
CFE_TBL_Global.Registry[0].Buffers[CFE_TBL_Global.Registry[0].ActiveBufferIndex].BufferPtr = BuffPtr;
785785

786-
UT_SetDeferredRetcode(UT_KEY(CFE_ResourceId_FindNext), 1, 0);
786+
UT_SetDeferredRetcode(UT_KEY(CFE_ResourceId_FindNext), 1, -1);
787787
UtAssert_INT32_EQ(CFE_TBL_ValidateCmd(&ValidateCmd), CFE_TBL_INC_ERR_CTR);
788788

789789
/* Test where the active buffer has data, but there is no validation
@@ -1127,6 +1127,19 @@ void Test_CFE_TBL_DumpCmd(void)
11271127
snprintf(DumpCmd.Payload.TableName, sizeof(DumpCmd.Payload.TableName), "%d", CFE_PLATFORM_TBL_MAX_NUM_TABLES + 1);
11281128
UtAssert_INT32_EQ(CFE_TBL_DumpCmd(&DumpCmd), CFE_TBL_INC_ERR_CTR);
11291129

1130+
/* Test where the active buffer has data, but no dump control buffer is available
1131+
*/
1132+
UT_InitData();
1133+
strncpy(CFE_TBL_Global.Registry[2].Name, "DumpCmdTest", sizeof(CFE_TBL_Global.Registry[2].Name) - 1);
1134+
strncpy(DumpCmd.Payload.TableName, CFE_TBL_Global.Registry[2].Name, sizeof(DumpCmd.Payload.TableName) - 1);
1135+
CFE_TBL_Global.Registry[2].DumpOnly = true;
1136+
DumpCmd.Payload.TableName[sizeof(DumpCmd.Payload.TableName) - 1] = '\0';
1137+
DumpCmd.Payload.ActiveTableFlag = CFE_TBL_BufferSelect_ACTIVE;
1138+
CFE_TBL_Global.Registry[2].Buffers[CFE_TBL_Global.Registry[2].ActiveBufferIndex].BufferPtr = BuffPtr;
1139+
1140+
UT_SetDeferredRetcode(UT_KEY(CFE_ResourceId_FindNext), 1, -1);
1141+
UtAssert_INT32_EQ(CFE_TBL_DumpCmd(&DumpCmd), CFE_TBL_INC_ERR_CTR);
1142+
11301143
/* Test with an active buffer, the pointer is created, validation passes,
11311144
* the table is dump only, no dump is already in progress, and have a
11321145
* working buffer; load in progress, single-buffered
@@ -4068,7 +4081,7 @@ void Test_CFE_TBL_ResourceID_ValidationResult(void)
40684081
UtAssert_BOOL_TRUE(CFE_TBL_CheckValidationResultSlotUsed(PendingId));
40694082

40704083
/* Test case where no ID is available */
4071-
UT_SetDefaultReturnValue(UT_KEY(CFE_ResourceId_FindNext), 0);
4084+
UT_SetDefaultReturnValue(UT_KEY(CFE_ResourceId_FindNext), -1);
40724085
UtAssert_VOIDCALL(PendingId = CFE_TBL_GetNextValResultBlock());
40734086
UtAssert_BOOL_FALSE(CFE_ResourceId_IsDefined(PendingId));
40744087

@@ -4167,7 +4180,7 @@ void Test_CFE_TBL_ResourceID_DumpControl(void)
41674180
UtAssert_BOOL_TRUE(CFE_TBL_CheckDumpCtrlSlotUsed(PendingId));
41684181

41694182
/* Test case where no ID is available */
4170-
UT_SetDefaultReturnValue(UT_KEY(CFE_ResourceId_FindNext), 0);
4183+
UT_SetDefaultReturnValue(UT_KEY(CFE_ResourceId_FindNext), -1);
41714184
UtAssert_VOIDCALL(PendingId = CFE_TBL_GetNextDumpCtrlBlock());
41724185
UtAssert_BOOL_FALSE(CFE_ResourceId_IsDefined(PendingId));
41734186

0 commit comments

Comments
 (0)