From 50c9d542e8bf641412debaa82a4dcf67ddb72258 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Thu, 10 Sep 2015 13:34:14 +0200 Subject: tests: Use unique name for TEST_PATH We had a cases in patch where two tests were using the same TEST_PATH and therefore they were stepping each other to the same files which caused failures. These failures are not easy to reproduce. This patch uses macro BASE_FILE_STEM for unique name. It should prevent copy&paste problem resulting to intermittent failures. @see also https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html Reviewed-by: Jakub Hrozek --- src/tests/auth-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/auth-tests.c') diff --git a/src/tests/auth-tests.c b/src/tests/auth-tests.c index 670a4d2ad..fda8931ae 100644 --- a/src/tests/auth-tests.c +++ b/src/tests/auth-tests.c @@ -39,7 +39,7 @@ #include "db/sysdb.h" #include "tests/common.h" -#define TESTS_PATH "tests_auth" +#define TESTS_PATH "tp_" BASE_FILE_STEM #define TEST_CONF_FILE "tests_conf.ldb" struct sysdb_test_ctx { -- cgit