summaryrefslogtreecommitdiffstats
path: root/server/monitor/monitor.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-02-02 17:22:34 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-02-03 10:35:19 -0500
commit45febf05db2be90441119d96a53e56be22dc1e96 (patch)
tree6156608bbf3245952c0c10544d80a0754472cd53 /server/monitor/monitor.c
parent067fbea128ea5f6298feb37f9aaab347afd59d8a (diff)
downloadsssd-45febf05db2be90441119d96a53e56be22dc1e96.tar.gz
sssd-45febf05db2be90441119d96a53e56be22dc1e96.tar.xz
sssd-45febf05db2be90441119d96a53e56be22dc1e96.zip
Make krb5 and open checks work if forking is disabled
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.
Diffstat (limited to 'server/monitor/monitor.c')
0 files changed, 0 insertions, 0 deletions