diff options
-rw-r--r-- | source4/lib/ldb/tools/ldbtest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c index 7c240a01d2..63ce738f8c 100644 --- a/source4/lib/ldb/tools/ldbtest.c +++ b/source4/lib/ldb/tools/ldbtest.c @@ -294,6 +294,8 @@ static void start_test_index(struct ldb_context **ldb) printf("Starting index test\n"); + ldb_delete(*ldb, "@INDEXLIST"); + memset(&msg, 0, sizeof(msg)); msg.dn = strdup("@INDEXLIST"); ldb_msg_add_string(*ldb, &msg, "@IDXATTR", strdup("uid")); @@ -404,10 +406,10 @@ static void usage(void) srandom(1); - start_test_index(&ldb); - start_test(ldb, nrecords, nsearches); + start_test_index(&ldb); + ldb_close(ldb); return 0; |