git.samba.org
/
jelmer
/
samba4-debian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa82b10
)
r6581: improved the error message for RAW-LOCK timeouts
author
Andrew Tridgell
<tridge@samba.org>
Mon, 2 May 2005 16:00:18 +0000
(16:00 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:16:28 +0000
(13:16 -0500)
source/torture/raw/lock.c
patch
|
blob
|
history
diff --git
a/source/torture/raw/lock.c
b/source/torture/raw/lock.c
index 97242e8f176fa747d043b6149024f2b29759a41f..4976d53b910de5577e4c26679e7009ea440c45c9 100644
(file)
--- a/
source/torture/raw/lock.c
+++ b/
source/torture/raw/lock.c
@@
-543,11
+543,13
@@
static BOOL test_async(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
status = smb_raw_lock(cli->tree, &io);
CHECK_STATUS(status, NT_STATUS_OK);
+ t = time(NULL);
status = smbcli_request_simple_recv(req);
CHECK_STATUS(status, NT_STATUS_OK);
if (time(NULL) > t+2) {
- printf("lock cancel by unlock was not immediate (%s)\n", __location__);
+ printf("lock cancel by unlock was not immediate (%s) - took %d secs\n",
+ __location__, (int)time(NULL)-t);
ret = False;
goto done;
}