summaryrefslogtreecommitdiffstats
path: root/src/tests/cmocka/test_sysdb_views.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-09-10 13:34:14 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-09-18 13:31:54 +0200
commit50c9d542e8bf641412debaa82a4dcf67ddb72258 (patch)
tree25e4501760b51b2dca676e137f65a004a3bc576a /src/tests/cmocka/test_sysdb_views.c
parentd71cd46ede9c57e3947c86c61306a9caddce242c (diff)
downloadsssd-50c9d542e8bf641412debaa82a4dcf67ddb72258.tar.gz
sssd-50c9d542e8bf641412debaa82a4dcf67ddb72258.tar.xz
sssd-50c9d542e8bf641412debaa82a4dcf67ddb72258.zip
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 <jhrozek@redhat.com>
Diffstat (limited to 'src/tests/cmocka/test_sysdb_views.c')
-rw-r--r--src/tests/cmocka/test_sysdb_views.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/cmocka/test_sysdb_views.c b/src/tests/cmocka/test_sysdb_views.c
index c53d8187b..8ec9b53fb 100644
--- a/src/tests/cmocka/test_sysdb_views.c
+++ b/src/tests/cmocka/test_sysdb_views.c
@@ -32,7 +32,7 @@
#include "providers/ipa/ipa_id.h"
#include "db/sysdb_private.h" /* for sysdb->ldb member */
-#define TESTS_PATH "tests_sysdb_views"
+#define TESTS_PATH "tp_" BASE_FILE_STEM
#define TEST_CONF_FILE "tests_conf.ldb"
#define TEST_ANCHOR_PREFIX ":ANCHOR:"