Skip to content

Commit

Permalink
Remove obsolete test in common/memContext.
Browse files Browse the repository at this point in the history
Once upon a time the allocation array was allocated up front so this test was required for the top context, which did not allocate up front.

Now allocations are done on demand so this case is covered for every context that does not allocate memory.
  • Loading branch information
dwsteele committed May 10, 2022
1 parent 6b98b35 commit 3a40394
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/src/module/common/memContextTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ testRun(void)

TEST_RESULT_VOID(memContextSwitch(memContextTop()), "switch to top");
TEST_RESULT_VOID(memContextFree(memContextTop()), "free top");

MemContext *noAllocation = memContextNewP("empty");
memContextKeep();
noAllocation->allocListSize = 0;
free(noAllocation->allocList);
TEST_RESULT_VOID(memContextFree(noAllocation), "free context with no allocations");
}

// *****************************************************************************************************************************
Expand Down

0 comments on commit 3a40394

Please sign in to comment.