1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-11 00:50:20 +02:00

Update TEST_RESULT_PTR() to TEST_RESULT_STR() where appropriate.

These were missed in d41eea68 when the functionality of TEST_RESULT_STR() was changed. Using TEST_RESULT_STR() instead of TEST_RESULT_PTR() is more type-safe and clearer.

Add a comment to make it clear that TEST_RESULT_PTR() should be used only when a better alternative is not available.
This commit is contained in:
David Steele
2020-06-17 09:46:09 -04:00
parent c4fe09dabe
commit ea984c4d3e
20 changed files with 67 additions and 65 deletions

View File

@ -76,7 +76,7 @@ testRun(void)
"3={\"db-id\":18072658121562454734,\"db-version\":\"9.6\"}\n"
"4={\"db-id\":18072658121562454734,\"db-version\":\"10\"}"));
TEST_RESULT_PTR(
TEST_RESULT_STR(
archiveGetCheck(strNew("876543218765432187654321"), cipherTypeNone, NULL).archiveFileActual, NULL, "no segment found");
// Write segment into an older archive path
@ -107,7 +107,7 @@ testRun(void)
// Get history file
// -------------------------------------------------------------------------------------------------------------------------
TEST_RESULT_PTR(
TEST_RESULT_STR(
archiveGetCheck(strNew("00000009.history"), cipherTypeNone, NULL).archiveFileActual, NULL, "history file not found");
storagePutP(storageNewWriteP(storageTest, strNew("repo/archive/test1/10-4/00000009.history")), NULL);