mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
r8448: - added a test target for tdb
- reduced the torture size so it doesn't kill the build farm hosts (This used to be commit 7a88a9f06cbe5c125edad0da7908b94bcedfe4fc)
This commit is contained in:
parent
a411d4f4d5
commit
606beece8e
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user