1
0
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:
David Steele
2022-05-10 11:18:12 -04:00
parent 6b98b3534e
commit 3a40394472

View File

@@ -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");
}
// *****************************************************************************************************************************