pt_util: Initialise empty database correctly
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sun, 13 Mar 2011 14:45:04 +0000 (14:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 13 Mar 2011 20:38:50 +0000 (13:38 -0700)
commit4953ce8070497bc494e624d72271bcbc5dc1dbe7
treea86e31760364b5b3f4a1219a74ff42ee4a49ec20
parent83f0baef29fd4962f5cb8ac93fb332af87433a4a
pt_util: Initialise empty database correctly

Commit dc8f18d6f5003712bc9ef989363137a84953df07 broke pt_util's
initialisation of empty databases. This is because Initdb was changed
to call Initdb_check through the ubik_CheckCache wrapper. However, that
wrapper was defined as a no-op in pt_util's ubik-shim.

Modify pt_util's ubik_CheckCache so that it always calls into the
wrapper routine - this mimics the old behaviour.

Add a trival test for pt_util - check that we can build the database,
using the example from the manpage, and then that the built database
matches what we expect.

Change-Id: I41aa9f6a531662230ed625cc3b1307016ef4107f
Reviewed-on: http://gerrit.openafs.org/4211
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ptserver/ubik.c
tests/TESTS
tests/ptserver/pt_util-t [new file with mode: 0755]