diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-26 09:04:11 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-04 12:41:30 -0500 |
commit | 9fb59763bce293c2490e0b9f8e97bb1f74ba0910 (patch) | |
tree | bebd5ddc3975da122a34a09a5781b26025b96720 /src/tests/find_uid-tests.c | |
parent | 07a2e0b66a1c4688825e07fa88d37886fec4770c (diff) | |
download | sssd-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/find_uid-tests.c')
-rw-r--r-- | src/tests/find_uid-tests.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/find_uid-tests.c b/src/tests/find_uid-tests.c index 9eafadd4..8d1362f7 100644 --- a/src/tests/find_uid-tests.c +++ b/src/tests/find_uid-tests.c @@ -29,6 +29,7 @@ #include <check.h> #include "util/find_uid.h" +#include "tests/common.h" START_TEST(test_check_if_uid_is_active_success) @@ -115,6 +116,9 @@ int main(void) { debug_level = 255; int number_failed; + + tests_set_cwd(); + Suite *s = find_uid_suite (); SRunner *sr = srunner_create (s); /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ |