1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Create TEST_PATH define in test.c.

This allows paths to be constructed without using sprintf(), which makes the tests simpler and faster.
This commit is contained in:
David Steele
2021-01-08 10:32:57 -05:00
parent ca9c1707f0
commit 6bdbcdc7fe

View File

@@ -27,6 +27,9 @@ The test code is included directly so it can freely interact with the included C
#include "common/error.h"
#endif
// Path where the test is running
#define TEST_PATH "{[C_TEST_PATH]}"
#include "common/harnessDebug.h"
#include "common/harnessTest.intern.h"