summaryrefslogtreecommitdiffstats
path: root/src/tests/strtonum-tests.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-02-26 09:04:11 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-03-04 12:41:30 -0500
commit9fb59763bce293c2490e0b9f8e97bb1f74ba0910 (patch)
treebebd5ddc3975da122a34a09a5781b26025b96720 /src/tests/strtonum-tests.c
parent07a2e0b66a1c4688825e07fa88d37886fec4770c (diff)
downloadsssd-9fb59763bce293c2490e0b9f8e97bb1f74ba0910.tar.gz
sssd-9fb59763bce293c2490e0b9f8e97bb1f74ba0910.tar.xz
sssd-9fb59763bce293c2490e0b9f8e97bb1f74ba0910.zip
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
Diffstat (limited to 'src/tests/strtonum-tests.c')
-rw-r--r--src/tests/strtonum-tests.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/strtonum-tests.c b/src/tests/strtonum-tests.c
index 7b9cf522c..a7131c1b5 100644
--- a/src/tests/strtonum-tests.c
+++ b/src/tests/strtonum-tests.c
@@ -25,6 +25,7 @@
#include <popt.h>
#include "util/util.h"
#include "util/strtonum.h"
+#include "tests/common.h"
/********************
* Utility routines *
@@ -445,6 +446,8 @@ int main(int argc, const char *argv[]) {
}
poptFreeContext(pc);
+ tests_set_cwd();
+
strtonum_suite = create_strtonum_suite();
sr = srunner_create(strtonum_suite);
/* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */