1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-07 00:35:37 +02:00

Ensure ASSERT() macro is always available in test modules.

Tests that run without DEBUG for performance did not have ASSERT() and were using CHECK() instead.

Instead ensure that the ASSERT() macro is always available in tests.
This commit is contained in:
David Steele
2021-11-24 16:09:45 -05:00
parent dcb4f09d83
commit 3f7409019d
5 changed files with 31 additions and 14 deletions

View File

@ -149,7 +149,7 @@ testRun(void)
TEST_TITLE_FMT("list %d million files", TEST_SCALE);
// One million files represents a fairly large cluster
CHECK(TEST_SCALE <= 2000);
ASSERT(TEST_SCALE <= 2000);
uint64_t fileTotal = (uint64_t)1000000 * TEST_SCALE;
HRN_FORK_BEGIN(.timeout = 60000)
@ -225,7 +225,7 @@ testRun(void)
ioBufferSizeSet(4 * 1024 * 1024);
// 1MB is a fairly normal table size
CHECK(TEST_SCALE <= 1024 * 1024 * 1024);
ASSERT(TEST_SCALE <= 1024 * 1024 * 1024);
uint64_t blockTotal = (uint64_t)1 * TEST_SCALE;
// Set iteration