diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-01-10 03:18:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:59 -0500 |
commit | df53401d0c9b2d2f73af281046f6592a31e52c3b (patch) | |
tree | c6649d0fac5e0c17aeee8dca8cd6f2b6de800b5e /source4 | |
parent | 6f18b19519efdd4d60146eaea4cfda849731efba (diff) | |
download | samba-df53401d0c9b2d2f73af281046f6592a31e52c3b.tar.gz samba-df53401d0c9b2d2f73af281046f6592a31e52c3b.tar.bz2 samba-df53401d0c9b2d2f73af281046f6592a31e52c3b.zip |
r12811: valgrind on RPC-ECHO with validate is extremely slow - speed it up if
torture:quick is set
(This used to be commit b591b28567eba148509c5dec060efaef2fd95ff6)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/echo.c | 18 |
1 files changed, 16 insertions, 2 deletions
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); |