summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb2/test/api-93-repack.c5
-rw-r--r--lib/tdb2/test/api-missing-entries.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/tdb2/test/api-93-repack.c b/lib/tdb2/test/api-93-repack.c
index 0a2e6d5b82..74a8b5eda2 100644
--- a/lib/tdb2/test/api-93-repack.c
+++ b/lib/tdb2/test/api-93-repack.c
@@ -5,7 +5,7 @@
#include <fcntl.h>
#include "logging.h"
-#define NUM_TESTS 50000
+#define NUM_TESTS 1000
static bool store_all(struct tdb_context *tdb)
{
@@ -53,6 +53,9 @@ int main(int argc, char *argv[])
struct tdb_context *tdb;
int flags[] = { TDB_DEFAULT, TDB_NOMMAP,
TDB_CONVERT, TDB_NOMMAP|TDB_CONVERT,
+ TDB_VERSION1, TDB_VERSION1|TDB_NOMMAP,
+ TDB_VERSION1|TDB_CONVERT,
+ TDB_VERSION1|TDB_NOMMAP|TDB_CONVERT
};
plan_tests(sizeof(flags) / sizeof(flags[0]) * 6 + 1);
diff --git a/lib/tdb2/test/api-missing-entries.c b/lib/tdb2/test/api-missing-entries.c
index 1932947a3a..0b21e1ee0f 100644
--- a/lib/tdb2/test/api-missing-entries.c
+++ b/lib/tdb2/test/api-missing-entries.c
@@ -26,16 +26,15 @@ int main(int argc, char *argv[])
.fn = failhash } };
hattr.base.next = &tap_log_attr;
- plan_tests(1 + 2 * NUM_RECORDS + 1);
+ plan_tests(1 + NUM_RECORDS + 2);
tdb = tdb_open("run-missing-entries.tdb", TDB_INTERNAL,
O_RDWR|O_CREAT|O_TRUNC, 0600, &hattr);
- ok1(tdb);
- if (tdb) {
+ if (ok1(tdb)) {
for (i = 0; i < NUM_RECORDS; i++) {
ok1(tdb_store(tdb, key, data, TDB_REPLACE) == 0);
- ok1(tdb_check(tdb, NULL, NULL) == 0);
}
+ ok1(tdb_check(tdb, NULL, NULL) == 0);
tdb_close(tdb);
}