svn commit: samba r8448 - in branches/SAMBA_4_0/source/lib/tdb: .
tools
tridge at samba.org
tridge at samba.org
Thu Jul 14 04:27:56 GMT 2005
Author: tridge
Date: 2005-07-14 04:27:55 +0000 (Thu, 14 Jul 2005)
New Revision: 8448
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8448
Log:
- added a test target for tdb
- reduced the torture size so it doesn't kill the build farm hosts
Modified:
branches/SAMBA_4_0/source/lib/tdb/Makefile.in
branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdb/Makefile.in
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2005-07-14 04:00:38 UTC (rev 8447)
+++ branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2005-07-14 04:27:55 UTC (rev 8448)
@@ -40,3 +40,8 @@
clean:
rm -f $(PROGS) common/*.o tools/*.o *~ *.bak */*~ */*.bak *% core test.db test.tdb test.gdbm
+
+installcheck: install
+ $(bindir)/tdbtorture
+
+test: installcheck
Modified: branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c 2005-07-14 04:00:38 UTC (rev 8447)
+++ branches/SAMBA_4_0/source/lib/tdb/tools/tdbtorture.c 2005-07-14 04:27:55 UTC (rev 8448)
@@ -182,11 +182,11 @@
}
#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 @@
pids[0] = getpid();
+ unlink("torture.tdb");
+
for (i=0;i<NPROC-1;i++) {
if ((pids[i+1]=fork()) == 0) break;
}
More information about the samba-cvs
mailing list