diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/echo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 96a716a312..ad09e00294 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -226,7 +226,11 @@ static BOOL test_sleep(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) int total_done = 0; BOOL ret = True; - printf("\nTesting TestSleep\n"); + if (!lp_parm_bool(-1, "torture", "echo_TestSleep", True)) { + printf("TestSleep disabled - use \"torture:echo_TestSleep=yes\" to enable\n"); + return True; + } + printf("Testing TestSleep - use \"torture:echo_TestSleep=no\" to disable\n"); for (i=0;i<ASYNC_COUNT;i++) { done[i] = False; |