diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-02 16:00:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:28 -0500 |
commit | 965fab8268bb8232802ab6c598121bd57641d719 (patch) | |
tree | b5047aa1591ef3bb705cc0de057e34837e8b9127 | |
parent | 289bc557ebbad8c3ad8b24a37eb48a5d4de43ee2 (diff) | |
download | samba-965fab8268bb8232802ab6c598121bd57641d719.tar.gz samba-965fab8268bb8232802ab6c598121bd57641d719.tar.bz2 samba-965fab8268bb8232802ab6c598121bd57641d719.zip |
r6581: improved the error message for RAW-LOCK timeouts
(This used to be commit 13ab07214e33e16d873befb3c34ed149d11a09ab)
-rw-r--r-- | source4/torture/raw/lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/raw/lock.c b/source4/torture/raw/lock.c index 97242e8f17..4976d53b91 100644 --- a/source4/torture/raw/lock.c +++ b/source4/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; } |