summaryrefslogtreecommitdiffstats
path: root/server/tests/check_and_open-tests.c
Commit message (Collapse)AuthorAgeFilesLines
* Make krb5 and open checks work if forking is disabledSumit Bose2010-02-031-1/+5
| | | | | | | | | | | | | | | | When CK_FORK is set to 'no' the fixtures are executed for every new test inside of the same process. Global variables must be set to the expected values by the fixtures. check_and_open-tests.c: the filename template for mkstemp() was a globally defined character string. After the first call to mkstemp() the trailing XXXXXX are substituted by random values, a second call to mkstemp() with this character string fails. This patch initialize the filename template before mkstemp() is called with the help of strdup() and the memory is freed in the teardown fixture. krb5_utils-tests.c: this patch sets the just freed global talloc context to NULL to make a consistency check in the setup fixture pass.
* Only display errors in unit testsStephen Gallagher2009-11-201-1/+2
| | | | | If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose
* more documentation and test for sssd.confSumit Bose2009-10-051-0/+29
| | | | | - add a hint to the man page about permissions on sssd.conf - add a test if a symbolic link can be opened
* add utility call check_and_open_readonlySumit Bose2009-10-051-0/+184
Use this new utility call to ensure that the config file is safe to read from.