svn commit: samba r12811 - in
branches/SAMBA_4_0/source/torture/rpc: .
tridge at samba.org
tridge at samba.org
Tue Jan 10 03:18:34 GMT 2006
Author: tridge
Date: 2006-01-10 03:18:33 +0000 (Tue, 10 Jan 2006)
New Revision: 12811
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12811
Log:
valgrind on RPC-ECHO with validate is extremely slow - speed it up if
torture:quick is set
Modified:
branches/SAMBA_4_0/source/torture/rpc/echo.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/echo.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/echo.c 2006-01-10 00:52:05 UTC (rev 12810)
+++ branches/SAMBA_4_0/source/torture/rpc/echo.c 2006-01-10 03:18:33 UTC (rev 12811)
@@ -123,9 +123,16 @@
{
int i;
NTSTATUS status;
- int len = 200000 + (random() % 5000);
+ int len;
struct echo_SourceData r;
+ if (lp_parm_bool(-1, "torture", "quick", False) &&
+ (p->conn->flags & DCERPC_DEBUG_VALIDATE_BOTH)) {
+ len = 100 + (random() % 5000);
+ } else {
+ len = 200000 + (random() % 5000);
+ }
+
printf("\nTesting SourceData\n");
r.in.len = len;
@@ -155,9 +162,16 @@
int i;
NTSTATUS status;
uint8_t *data_in;
- int len = 200000 + (random() % 5000);
+ int len;
struct echo_SinkData r;
+ if (lp_parm_bool(-1, "torture", "quick", False) &&
+ (p->conn->flags & DCERPC_DEBUG_VALIDATE_BOTH)) {
+ len = 100 + (random() % 5000);
+ } else {
+ len = 200000 + (random() % 5000);
+ }
+
printf("\nTesting SinkData\n");
data_in = talloc_size(mem_ctx, len);
More information about the samba-cvs
mailing list