summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/tdb/Makefile.in5
-rw-r--r--source4/lib/tdb/tools/tdbtorture.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/source4/lib/tdb/Makefile.in b/source4/lib/tdb/Makefile.in
index 8e9a359514..ea96dddffc 100644
--- a/source4/lib/tdb/Makefile.in
+++ b/source4/lib/tdb/Makefile.in
@@ -40,3 +40,8 @@ bin/tdbbackup: tools/tdbbackup.o $(TDB_OBJ)
clean:
rm -f $(PROGS) common/*.o tools/*.o *~ *.bak */*~ */*.bak *% core test.db test.tdb test.gdbm
+
+installcheck: install
+ $(bindir)/tdbtorture
+
+test: installcheck
diff --git a/source4/lib/tdb/tools/tdbtorture.c b/source4/lib/tdb/tools/tdbtorture.c
index 7e8e77952c..687d304b70 100644
--- a/source4/lib/tdb/tools/tdbtorture.c
+++ b/source4/lib/tdb/tools/tdbtorture.c
@@ -182,11 +182,11 @@ static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
}
#ifndef NPROC
-#define NPROC 6
+#define NPROC 2
#endif
#ifndef NLOOPS
-#define NLOOPS 200000
+#define NLOOPS 5000
#endif
int main(int argc, const char *argv[])
@@ -197,6 +197,8 @@ static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
pids[0] = getpid();
+ unlink("torture.tdb");
+
for (i=0;i<NPROC-1;i++) {
if ((pids[i+1]=fork()) == 0) break;
}