From df53401d0c9b2d2f73af281046f6592a31e52c3b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Jan 2006 03:18:33 +0000 Subject: r12811: valgrind on RPC-ECHO with validate is extremely slow - speed it up if torture:quick is set (This used to be commit b591b28567eba148509c5dec060efaef2fd95ff6) --- source4/torture/rpc/echo.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'source4/torture/rpc/echo.c') diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 7df2702d0a..6da9cc523c 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -123,9 +123,16 @@ static BOOL test_sourcedata(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) { 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 @@ static BOOL test_sinkdata(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) 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); -- cgit