Skip to content

Commit

Permalink
Fix nasa#2103, Resolve UT buffer underflow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed May 18, 2022
1 parent 8557be7 commit 3246170
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/cfe_testcase/src/es_counter_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ void TestCounterCreateDelete(void)
CFE_Assert_STATUS_MAY_BE(CFE_SUCCESS);
}

/* If no counters were available skip the rest of the test */
if (NumCounters == 0)
{
UtAssert_MIR("No ES generic counters available for testing, skipping");
return;
}

/* Confirm that the expected number of counters were created */
UtAssert_UINT32_LTEQ(NumCounters, CFE_PLATFORM_ES_MAX_GEN_COUNTERS);

Expand Down

0 comments on commit 3246170

Please sign in to comment.