1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r7401: add config option to disable the TestSleep() test

torture:echo_TestSleep=no

metze
This commit is contained in:
Stefan Metzmacher 2005-06-08 17:55:58 +00:00 committed by Gerald (Jerry) Carter
parent 75dbd20693
commit 74bb55f3ae

View 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;