Skip to content

Commit

Permalink
Fix nasa#1787, Success Test for CFE_ES_GetMemPoolStats
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker committed Aug 13, 2021
1 parent 73c1565 commit 3efc5b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/es/ut-coverage/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -4618,6 +4618,10 @@ void TestESMempool(void)
* the pool start address
*/
UtAssert_INT32_EQ(CFE_ES_GetMemPoolStats(&Stats, CFE_ES_MEMHANDLE_UNDEFINED), CFE_ES_ERR_RESOURCEID_NOT_VALID);

/* Test successfully getting memory pool statistics
*/
CFE_UtAssert_SUCCESS(CFE_ES_GetMemPoolStats(&Stats, PoolID1));

/* Test allocating a pool buffer where the memory block doesn't fit within
* the remaining memory
Expand Down

0 comments on commit 3efc5b5

Please sign in to comment.