You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Remove obsolete test in common/memContext.
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.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
// *****************************************************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user