auth: Add more tests and resulting fixes to userok
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 24 Dec 2010 18:32:30 +0000 (18:32 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 26 Dec 2010 18:58:49 +0000 (10:58 -0800)
commit83ac1558b6cc8245166d997a44297eb197348616
treed4bb28a581b08cbfcdfc6d37b7cae47c448b2bd2
parentaffc978be7ba3c36c9b7a6a94fb5e907beebed99
auth: Add more tests and resulting fixes to userok

Add tests for the functions afsconf_SuperUser() and
afsconf_SuperIdentity(). These had been missing tests because testing
them requires starting a client and a server, so amend the superuser-t
tests so that they can start up a simple server.

Fix a number of problems that the tests expose, with setting (and
freeing) identities in corner cases.

Change-Id: I29f5f9eda7f532c98183d588e488d704f8efad88
Reviewed-on: http://gerrit.openafs.org/3593
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/auth/userok.c
tests/auth/.gitignore
tests/auth/Makefile.in
tests/auth/superuser-t.c
tests/auth/test.xg [new file with mode: 0644]