summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-03-06 13:00:32 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-03-06 21:55:26 +0100
commitb93fe4ec821f997fba5058bf5e76ff77c3a39026 (patch)
tree0a169604aadbdb8599bc95c5fce29a810beb7611 /src/tests
parentd00ffd2cb4e2f17c75b466178bb645b5c9317909 (diff)
downloadsssd-b93fe4ec821f997fba5058bf5e76ff77c3a39026.tar.gz
sssd-b93fe4ec821f997fba5058bf5e76ff77c3a39026.tar.xz
sssd-b93fe4ec821f997fba5058bf5e76ff77c3a39026.zip
TEST: Use unique directory for negcache test
nss-srv-tests and test-negcache wrote temporary files to the same subdirectory 'tests_nss'. There could be a race condition when tests ran in parallel. The first test could remove directory which the second one wanted to use. [ldb] (0x0020): Unable to open tdb 'tests_nss/test_nss_conf.ldb' [ldb] (0x0020): Failed to connect to 'tests_nss/test_nss_conf.ldb' with backend 'tdb': Unable to open tdb 'tests_nss/test_nss_conf.ldb' [confdb_init] (0x0010): Unable to open config database [tests_nss/test_nss_conf.ldb] [create_dom_test_ctx] (0x0020): confdb_init failed: 5 Reviewed-by: Michal Žídek <mzidek@redhat.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/cmocka/test_negcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/cmocka/test_negcache.c b/src/tests/cmocka/test_negcache.c
index 38324b567..605e27f04 100644
--- a/src/tests/cmocka/test_negcache.c
+++ b/src/tests/cmocka/test_negcache.c
@@ -50,7 +50,7 @@
#define SHORTSPAN 1
#define NAME "foo_name"
#define UID "U-1-2-3-4-5"
-#define TESTS_PATH "tests_nss"
+#define TESTS_PATH "tests_ncache"
#define TEST_CONF_DB "test_nss_conf.ldb"
#define TEST_SYSDB_FILE "cache_nss_test.ldb"
#define TEST_DOM_NAME "nss_test"