From 0378d4b2f764f918c4ce34e0e38f16de3d012b93 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 11 Feb 2011 12:57:30 +0100 Subject: 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. --- src/db/sysdb.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 8806fe05f..e20356157 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -886,10 +886,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; @@ -1452,10 +1448,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; -- cgit