{
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;
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);