pgbackrest.git / summary / log / commit / refs

commit    5ecae90f0254ef752d8323ea5be3b99673ec46f7
Author:   David Steele <david@pgmasters.net>
Date:     Fri Jun 17 20:31:48 2022 +0000

    Use constants rather than replacements when possible in test.c.
    
    Some of the replacements that were being done already existed as constants, so use the constants instead.
    
    Also fix a minor formatting error introduced when testAdd() was renamed to hrnAdd().


test/src/test.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/src/test.c b/test/src/test.c index fc76ae44c..ad33a5d77 100644 --- a/test/src/test.c +++ b/test/src/test.c @@ -192,13 +192,13 @@ main(int argListSize, const char *argList[]) // Set globals hrnInit( argList[0], // Test exe - "{[C_TEST_PROJECT_EXE]}", // Project exe - {[C_TEST_CONTAINER]}, // Is this test running in a container? + TEST_PROJECT_EXE, // Project exe + TEST_IN_CONTAINER, // Is this test running in a container? {[C_TEST_IDX]}, // The 0-based index of this test {[C_TEST_TIMING]}, // Is timing enabled (may be disabled for reproducible documentation) - "{[C_TEST_PATH]}", // Path where tests write data - "{[C_HRN_PATH]}", // Path where the harness stores temp files (expect, diff, etc.) - "{[C_HRN_PATH_REPO]}"); // Path with a copy of the repository + TEST_PATH, // Path where tests write data + HRN_PATH, // Path where the harness stores temp files (expect, diff, etc.) + HRN_PATH_REPO); // Path with a copy of the repository // Set default test log level #ifdef HRN_FEATURE_LOG @@ -212,7 +212,7 @@ main(int argListSize, const char *argList[]) #endif // Initialize tests - // run, selected + // run, selected {[C_TEST_LIST]} #ifdef HRN_FEATURE_ERROR [parent: dab1e4b6c660]