Skip to content

Commit

Permalink
Fix #1868, Add TBL API test cases
Browse files Browse the repository at this point in the history
Adds TBL functional test cases to cover all missing items that
were identified as part of the scrub in issue #1724.

Where a specific condition is not testable because it requires
a failure of another subsystem, it is marked as `covtest` to
indicate it is only verifiable in coverage test environment.
  • Loading branch information
jphickey committed Aug 23, 2021
1 parent 5e41330 commit fb7cd23
Show file tree
Hide file tree
Showing 6 changed files with 548 additions and 43 deletions.
2 changes: 1 addition & 1 deletion modules/cfe_testcase/src/tbl_content_access_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void TestGetAddress(void)
/* Never loaded */
UtAssert_INT32_EQ(CFE_TBL_GetAddress(&TblPtr, CFE_FT_Global.TblHandle), CFE_TBL_ERR_NEVER_LOADED);
UtAssert_INT32_EQ(CFE_TBL_GetAddress(&TblPtr, CFE_TBL_BAD_TABLE_HANDLE), CFE_TBL_ERR_INVALID_HANDLE);
UtAssert_INT32_EQ(CFE_TBL_GetAddress(NULL, CFE_TBL_BAD_TABLE_HANDLE), CFE_TBL_BAD_ARGUMENT);
UtAssert_INT32_EQ(CFE_TBL_GetAddress(NULL, CFE_FT_Global.TblHandle), CFE_TBL_BAD_ARGUMENT);

/* Returns CFE_TBL_INFO_UPDATED since it was just loaded */
LoadTable(&TestTable, CFE_SUCCESS);
Expand Down
Loading

0 comments on commit fb7cd23

Please sign in to comment.