From 965fab8268bb8232802ab6c598121bd57641d719 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 May 2005 16:00:18 +0000 Subject: r6581: improved the error message for RAW-LOCK timeouts (This used to be commit 13ab07214e33e16d873befb3c34ed149d11a09ab) --- source4/torture/raw/lock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/torture/raw/lock.c') 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; } -- cgit