diff --git a/src/ptserver/ubik.c b/src/ptserver/ubik.c index 3b6ddf8483..6b9b92831e 100644 --- a/src/ptserver/ubik.c +++ b/src/ptserver/ubik.c @@ -102,7 +102,7 @@ ubik_WaitVersion(struct ubik_dbase *adatabase, int ubik_CheckCache(struct ubik_trans *atrans, ubik_updatecache_func cbf, void *rock) { - return (0); + return (*cbf)(atrans, rock); } void diff --git a/tests/TESTS b/tests/TESTS index e1e621c2e8..93a078714b 100644 --- a/tests/TESTS +++ b/tests/TESTS @@ -4,3 +4,4 @@ util/queues auth/keys auth/superuser auth/authcon +ptserver/pt_util diff --git a/tests/ptserver/pt_util-t b/tests/ptserver/pt_util-t new file mode 100755 index 0000000000..8d3cdcb873 --- /dev/null +++ b/tests/ptserver/pt_util-t @@ -0,0 +1,53 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use File::Basename; +use Test::More tests=>2; + +my $builddir = $ENV{BUILD}; +if (!$builddir) { + $builddir = dirname($0)."/.."; +} + +$builddir.="/.."; + +my $prdbfile = "/tmp/prdbtest.$$"; + +my $instructions = <