diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-03-07 13:03:19 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-03-12 22:49:23 +0100 |
commit | a95c006f748fa9df0dd81509b51974133d2786af (patch) | |
tree | 59b12fe5b0781c44b604f843e66ac679d7e92cd4 /src/tests/cmocka/test_dp_opts.c | |
parent | bad65473c4c28ecbf2b6bd374a7ae2d634d57d8d (diff) | |
download | sssd-a95c006f748fa9df0dd81509b51974133d2786af.tar.gz sssd-a95c006f748fa9df0dd81509b51974133d2786af.tar.xz sssd-a95c006f748fa9df0dd81509b51974133d2786af.zip |
TEST: Remove unused argument sysdb_path
Name of sysdb file is automatically generated from domain name and db_path
in function sysdb_domain_init.
talloc_asprintf is called with arguments "%s/cache_%s.ldb", db_path, dom->name
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tests/cmocka/test_dp_opts.c')
-rw-r--r-- | src/tests/cmocka/test_dp_opts.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/cmocka/test_dp_opts.c b/src/tests/cmocka/test_dp_opts.c index 07998b403..f3029940d 100644 --- a/src/tests/cmocka/test_dp_opts.c +++ b/src/tests/cmocka/test_dp_opts.c @@ -32,8 +32,8 @@ #define TESTS_PATH "tests_opts" #define TEST_CONF_DB "test_opt_conf.ldb" -#define TEST_SYSDB_FILE "cache_opt_test.ldb" #define TEST_DOM_NAME "opt_test" +#define TEST_SYSDB_FILE "cache_"TEST_DOM_NAME".ldb" #define TEST_ID_PROVIDER "ldap" enum test_opts { @@ -224,8 +224,7 @@ void opt_test_get(void **state) bool bo; tctx = create_dom_test_ctx(global_talloc_context, TESTS_PATH, TEST_CONF_DB, - TEST_SYSDB_FILE, TEST_DOM_NAME, - TEST_ID_PROVIDER, params); + TEST_DOM_NAME, TEST_ID_PROVIDER, params); assert_non_null(tctx); dompath = talloc_asprintf(tctx, "config/domain/%s", TEST_DOM_NAME); |