From 9fb59763bce293c2490e0b9f8e97bb1f74ba0910 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 26 Feb 2010 09:04:11 -0500 Subject: Add --with-test-dir option to configure All 'make check' tests will chdir() into this directory before running the suite. This provides the option of having temporary files generated in a tmpfs or ramdisk --- src/db/sysdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db') diff --git a/src/db/sysdb.c b/src/db/sysdb.c index b3f81a08..41dd4f3f 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -974,7 +974,7 @@ static int sysdb_check_upgrade_02(TALLOC_CTX *mem_ctx, } #ifdef SYSDB_TEST - ldb_set_modules_dir(ldb, "./.libs"); + ldb_set_modules_dir(ctx->ldb, ABS_BUILD_DIR"/.libs"); #endif ret = ldb_connect(ldb, ldb_file, 0, NULL); @@ -1542,7 +1542,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, } #ifdef SYSDB_TEST - ldb_set_modules_dir(ctx->ldb, "./.libs"); + ldb_set_modules_dir(ctx->ldb, ABS_BUILD_DIR"/.libs"); #endif ret = ldb_connect(ctx->ldb, ctx->ldb_file, 0, NULL); -- cgit