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().
@@ -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
