r7401: add config option to disable the TestSleep() test
authorStefan Metzmacher <metze@samba.org>
Wed, 8 Jun 2005 17:55:58 +0000 (17:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:50 +0000 (13:17 -0500)
torture:echo_TestSleep=no

metze
(This used to be commit 74bb55f3ae90871749f34f17a79eabe38d6b437a)

source4/torture/rpc/echo.c

index 96a716a312db7b9261f7e61495727f36bbaa3f96..ad09e00294954f58f7f27085d75bb1f3e55fd29f 100644 (file)
@@ -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;