diff options
-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. */ |