pgbackrest.git / summary / log / commit / refs
commit 6bdbcdc7fe9edf51979ec082cf6616e978dc2b6e
Author: David Steele <david@pgmasters.net>
Date: Fri Jan 08 15:32:57 2021 +0000
Create TEST_PATH define in test.c.
This allows paths to be constructed without using sprintf(), which makes the tests simpler and faster.
test/src/test.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/test/src/test.c b/test/src/test.c
index 60da76b49..efa0c28b0 100644
--- a/test/src/test.c
+++ b/test/src/test.c
@@ -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"
[parent: ca9c1707f020]