diff options
author | Volker Lendecke <vl@samba.org> | 2013-02-21 16:34:32 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-22 21:05:15 +0200 |
commit | 1e74ba47daccbcadb5f15288b5e929f7e8cefb95 (patch) | |
tree | 83672f669f05b77dbb537904fd69f6f133193a25 | |
parent | 1cb1b13cc954f2e40796a8db96f7ab9bf4fffc79 (diff) | |
download | samba-1e74ba47daccbcadb5f15288b5e929f7e8cefb95.tar.gz samba-1e74ba47daccbcadb5f15288b5e929f7e8cefb95.tar.xz samba-1e74ba47daccbcadb5f15288b5e929f7e8cefb95.zip |
tdb/test: add PING command to external-agent.c
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | lib/tdb/test/external-agent.c | 4 | ||||
-rw-r--r-- | lib/tdb/test/external-agent.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb/test/external-agent.c b/lib/tdb/test/external-agent.c index 0aca081fc6..57ed2f5496 100644 --- a/lib/tdb/test/external-agent.c +++ b/lib/tdb/test/external-agent.c @@ -87,6 +87,9 @@ static enum agent_return do_operation(enum operation op, const char *name) ret = tdb_close(tdb) == 0 ? SUCCESS : OTHER_FAILURE; tdb = NULL; break; + case PING: + ret = SUCCESS; + break; default: ret = OTHER_FAILURE; } @@ -207,6 +210,7 @@ const char *operation_name(enum operation op) case CHECK: return "CHECK"; case NEEDS_RECOVERY: return "NEEDS_RECOVERY"; case CLOSE: return "CLOSE"; + case PING: return "PING"; } return "**INVALID**"; } diff --git a/lib/tdb/test/external-agent.h b/lib/tdb/test/external-agent.h index 354f5b9352..bf8a221bca 100644 --- a/lib/tdb/test/external-agent.h +++ b/lib/tdb/test/external-agent.h @@ -13,6 +13,7 @@ enum operation { CHECK, NEEDS_RECOVERY, CLOSE, + PING, }; /* Do this before doing any tdb stuff. Return handle, or -1. */ |