diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-08-18 15:46:41 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-08-18 15:46:41 +0000 |
commit | a897c3ceda9fc2fad22edc2d884e5ecd87995592 (patch) | |
tree | 495af8fa3e6510f6c9785facae4cdc51b7647541 /source3 | |
parent | d86b5fff06bdb899e1a197b534e2037792d09dc4 (diff) | |
download | samba-a897c3ceda9fc2fad22edc2d884e5ecd87995592.tar.gz samba-a897c3ceda9fc2fad22edc2d884e5ecd87995592.tar.bz2 samba-a897c3ceda9fc2fad22edc2d884e5ecd87995592.zip |
make the LOCK1 test randomise the time for the blocking lock test
(This used to be commit 28d325227c9b7ab48a47df006204319b21f7e7f7)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/torture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 101f4071cb..f3b816c80f 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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 { |