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/tests/auth-tests.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tests/auth-tests.c') diff --git a/src/tests/auth-tests.c b/src/tests/auth-tests.c index 71215bcd..64864090 100644 --- a/src/tests/auth-tests.c +++ b/src/tests/auth-tests.c @@ -37,6 +37,7 @@ #include "util/util.h" #include "confdb/confdb.h" #include "db/sysdb.h" +#include "tests/common.h" #define TESTS_PATH "tests_auth" #define TEST_CONF_FILE "tests_conf.ldb" @@ -319,6 +320,8 @@ int main(int argc, const char *argv[]) } poptFreeContext(pc); + tests_set_cwd(); + ret = clean_db_dir(); if (ret != EOK) { fprintf(stderr, "Could not delete the db directory (%d) (%s)\n", -- cgit