summaryrefslogtreecommitdiffstats
path: root/src/tests/common_dom.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-02-18 13:34:32 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-02-18 22:58:30 +0100
commit5a22be7f84f85d6b25aa277ac78ee34fac95dd42 (patch)
tree53d040bf6b3282ef1db7a3929125bf0761a4518d /src/tests/common_dom.c
parent208b9f9bea519392428d99803edac1739ffdd444 (diff)
downloadsssd-5a22be7f84f85d6b25aa277ac78ee34fac95dd42.tar.gz
sssd-5a22be7f84f85d6b25aa277ac78ee34fac95dd42.tar.xz
sssd-5a22be7f84f85d6b25aa277ac78ee34fac95dd42.zip
tests: add confdb_path to sss_test_ctx
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tests/common_dom.c')
-rw-r--r--src/tests/common_dom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/common_dom.c b/src/tests/common_dom.c
index c0b44456c..42bf358a3 100644
--- a/src/tests/common_dom.c
+++ b/src/tests/common_dom.c
@@ -35,7 +35,6 @@ create_dom_test_ctx(TALLOC_CTX *mem_ctx,
struct sss_test_conf_param *params)
{
struct sss_test_ctx *test_ctx;
- char *conf_db;
size_t i;
const char *val[2];
val[1] = NULL;
@@ -48,14 +47,15 @@ create_dom_test_ctx(TALLOC_CTX *mem_ctx,
goto fail;
}
- conf_db = talloc_asprintf(test_ctx, "%s/%s", tests_path, confdb_path);
- if (conf_db == NULL) {
+ test_ctx->confdb_path = talloc_asprintf(test_ctx, "%s/%s",
+ tests_path, confdb_path);
+ if (test_ctx->confdb_path == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "talloc_asprintf failed\n");
goto fail;
}
/* Connect to the conf db */
- ret = confdb_init(test_ctx, &test_ctx->confdb, conf_db);
+ ret = confdb_init(test_ctx, &test_ctx->confdb, test_ctx->confdb_path);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE, "confdb_init failed: %d\n", ret);
goto fail;