summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-08 17:55:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:50 -0500
commitbe6b73de65201c5f0dd147918a259faa62e7faa1 (patch)
tree8c20cc0c25fe919f67bbf02b07c179daa129169e /source4/torture
parent7104da3e8f678c85c17c74476ab64391067e72fe (diff)
downloadsamba-be6b73de65201c5f0dd147918a259faa62e7faa1.tar.gz
samba-be6b73de65201c5f0dd147918a259faa62e7faa1.tar.bz2
samba-be6b73de65201c5f0dd147918a259faa62e7faa1.zip
r7401: add config option to disable the TestSleep() test
torture:echo_TestSleep=no metze (This used to be commit 74bb55f3ae90871749f34f17a79eabe38d6b437a)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/echo.c6
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;