From 9d897b0951e73a4717ae133d5b6b2493334fbf22 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 22 Feb 2012 15:03:37 +1030 Subject: lib/tdb2: adapt unit tests to SAMBA environment. This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell --- lib/tdb2/test/helpapi-external-agent.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/tdb2/test/helpapi-external-agent.c (limited to 'lib/tdb2/test/helpapi-external-agent.c') diff --git a/lib/tdb2/test/helpapi-external-agent.c b/lib/tdb2/test/helpapi-external-agent.c new file mode 100644 index 0000000000..140ffaf116 --- /dev/null +++ b/lib/tdb2/test/helpapi-external-agent.c @@ -0,0 +1,8 @@ +#include "external-agent.h" +#include "tdb1_private.h" + +/* This isn't possible with via the tdb2 API, but this makes it link. */ +enum agent_return external_agent_needs_rec(struct tdb_context *tdb) +{ + return FAILED; +} -- cgit