mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
make the LOCK1 test randomise the time for the blocking lock test
This commit is contained in:
parent
8d40f34e2f
commit
28d325227c
@ -829,7 +829,7 @@ static BOOL run_locktest1(int dummy)
|
||||
|
||||
printf("Testing lock timeouts\n");
|
||||
t1 = time(NULL);
|
||||
if (cli_lock(&cli2, fnum3, 0, 4, 10*1000, WRITE_LOCK)) {
|
||||
if (cli_lock(&cli2, fnum3, 0, 4, (1 + (random() % 20)) * 1000, WRITE_LOCK)) {
|
||||
printf("lock3 succeeded! This is a locking bug\n");
|
||||
return False;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user