From a466888622798d91cf72d547584194c76e133d15 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 24 Nov 2009 15:19:28 +0100 Subject: Use ldb modules from build root for tests --- server/db/sysdb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/db/sysdb.c') diff --git a/server/db/sysdb.c b/server/db/sysdb.c index b59ffa4c..5a274fb1 100644 --- a/server/db/sysdb.c +++ b/server/db/sysdb.c @@ -1201,6 +1201,10 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, return EIO; } +#ifdef SYSDB_TEST + ldb_set_modules_dir(ctx->ldb, "./.libs"); +#endif + ret = ldb_connect(ctx->ldb, ctx->ldb_file, 0, NULL); if (ret != LDB_SUCCESS) { return EIO; -- cgit