summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-02-11 12:57:30 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-02-11 09:17:55 -0500
commit21f28bdbab10881b9fb0b890dfa15af429326606 (patch)
treef7d89218425555092a73a7f1e2deb10c520c12c9 /src/db
parent23e8d84320ae8b76d244764c02e44036e96cd4df (diff)
downloadsssd-21f28bdbab10881b9fb0b890dfa15af429326606.tar.gz
sssd-21f28bdbab10881b9fb0b890dfa15af429326606.tar.bz2
sssd-21f28bdbab10881b9fb0b890dfa15af429326606.zip
Make 'make check' look nice again
With current libldb releases 'make check' will print a lot of 'unable to dlopen' messages although the test will succeed. This patch place the memberof module into a directory of its own to avoid these messages. Additionally this patch introduces TESTS_ENVIRONMENT which allows us to remove the SYSDB_TEST preprocessor definition.
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 1409149c..694ce54c 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -889,10 +889,6 @@ static int sysdb_check_upgrade_02(TALLOC_CTX *mem_ctx,
goto exit;
}
-#ifdef SYSDB_TEST
- ldb_set_modules_dir(ctx->ldb, ABS_BUILD_DIR"/.libs");
-#endif
-
ret = ldb_connect(ldb, ldb_file, 0, NULL);
if (ret != LDB_SUCCESS) {
ret = EIO;
@@ -1563,10 +1559,6 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
return EIO;
}
-#ifdef SYSDB_TEST
- ldb_set_modules_dir(ctx->ldb, ABS_BUILD_DIR"/.libs");
-#endif
-
ret = ldb_connect(ctx->ldb, ctx->ldb_file, 0, NULL);
if (ret != LDB_SUCCESS) {
return EIO;