You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-05 00:28:52 +02:00
Rename PG_VERSION_*_STR constants to PG_VERSION_*_Z.
This is more consistent with other zero-terminated string constants and also has the benefit of being shorter.
This commit is contained in:
@ -127,7 +127,7 @@ testRun(void)
|
||||
"invalid PostgreSQL version 990000\n"
|
||||
"HINT: is this version of PostgreSQL supported?");
|
||||
|
||||
TEST_ASSIGN(info, pgControlFromFile(storageTest, STRDEF(PG_VERSION_15_STR)), "get control info v90");
|
||||
TEST_ASSIGN(info, pgControlFromFile(storageTest, STRDEF(PG_VERSION_15_Z)), "get control info v90");
|
||||
TEST_RESULT_UINT(info.systemId, 0xEFEFEFEFEF, "check system id");
|
||||
TEST_RESULT_UINT(info.version, PG_VERSION_15, "check version");
|
||||
TEST_RESULT_UINT(info.catalogVersion, 202211111, "check catalog version");
|
||||
@ -265,7 +265,7 @@ testRun(void)
|
||||
"unexpected WAL magic 777\n"
|
||||
"HINT: is this version of PostgreSQL supported?");
|
||||
|
||||
TEST_ASSIGN(info, pgWalFromFile(walFile, storageTest, STRDEF(PG_VERSION_15_STR)), "force wal info v15");
|
||||
TEST_ASSIGN(info, pgWalFromFile(walFile, storageTest, STRDEF(PG_VERSION_15_Z)), "force wal info v15");
|
||||
TEST_RESULT_UINT(info.systemId, 0xFAFAFAFA, "check system id");
|
||||
TEST_RESULT_UINT(info.version, PG_VERSION_15, " check version");
|
||||
TEST_RESULT_UINT(info.size, PG_WAL_SEGMENT_SIZE_DEFAULT, " check size");
|
||||
|
Reference in New Issue
Block a user