summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/tools
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb/tools')
-rw-r--r--source4/lib/tdb/tools/tdbtorture.c6
1 files changed, 4 insertions, 2 deletions
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;
}