summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/rpc/echo.c18
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);