mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
r12811: valgrind on RPC-ECHO with validate is extremely slow - speed it up if
torture:quick is set (This used to be commit b591b28567eba148509c5dec060efaef2fd95ff6)
This commit is contained in:
parent
6f18b19519
commit
df53401d0c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user