summaryrefslogtreecommitdiffstats
path: root/src/tests/common.c
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-03-18 12:47:35 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-20 13:04:10 +0100
commitdfe84158c49e44f2207b94d25e61ab4f3fe38366 (patch)
tree57275ec15303d6a31937911f01dcc5097edb7eb6 /src/tests/common.c
parentaa7202c8ae677becd6c91d6a27a607fe0f3995ee (diff)
downloadsssd-dfe84158c49e44f2207b94d25e61ab4f3fe38366.tar.gz
sssd-dfe84158c49e44f2207b94d25e61ab4f3fe38366.tar.xz
sssd-dfe84158c49e44f2207b94d25e61ab4f3fe38366.zip
tests: Print warning if LDB_MODULES_PATH is not set
Print warning if sysdb-tests or sysdb-ssh test are run individually and LDB_MODULES_PATH was not set. https://fedorahosted.org/sssd/ticket/1820
Diffstat (limited to 'src/tests/common.c')
-rw-r--r--src/tests/common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/common.c b/src/tests/common.c
index 65e695581..54c93e281 100644
--- a/src/tests/common.c
+++ b/src/tests/common.c
@@ -101,3 +101,12 @@ compare_sdap_attr_maps(struct sdap_attr_map *map1, size_t size1,
return EOK;
}
+
+bool ldb_modules_path_is_set(void)
+{
+ if (getenv("LDB_MODULES_PATH")) {
+ return true;
+ }
+
+ return false;
+}