pgbackrest.git / summary / log / commit / refs
commit 808f7bf11c367a5be2130ea573c9447d8ea2dda8
Author: David Steele <david@pgmasters.net>
Date: Fri May 06 00:14:13 2022 +0000
Replace strNewFmt() with TEST_ERROR_FMT() in command/archive-push module.
This test was likely written before TEST_ERROR_FMT() existed.
test/src/module/command/archivePushTest.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/test/src/module/command/archivePushTest.c b/test/src/module/command/archivePushTest.c
index dae66a655..eeb803dca 100644
--- a/test/src/module/command/archivePushTest.c
+++ b/test/src/module/command/archivePushTest.c
@@ -512,13 +512,12 @@ testRun(void)
HRN_STORAGE_MODE(storageTest, "repo2/archive/test/11-1/0000000100000001", .mode = 0500);
- TEST_ERROR(
+ TEST_ERROR_FMT(
cmdArchivePush(), CommandError,
- strZ(
- strNewFmt(
- "archive-push command encountered error(s):\n"
- "repo2: [FileOpenError] unable to open file '" TEST_PATH "/repo2/archive/test/11-1/0000000100000001"
- "/000000010000000100000002-%s' for write: [13] Permission denied", walBuffer2Sha1)));
+ "archive-push command encountered error(s):\n"
+ "repo2: [FileOpenError] unable to open file '" TEST_PATH "/repo2/archive/test/11-1/0000000100000001"
+ "/000000010000000100000002-%s' for write: [13] Permission denied",
+ walBuffer2Sha1);
TEST_STORAGE_LIST_EMPTY(storageTest, "repo2/archive/test/11-1/0000000100000001", .comment = "check repo2 for no WAL file");
TEST_STORAGE_LIST(
[parent: efe0a39a75ed]