From 42cba737c0e63069c08fc65396f389d0fe45764a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Nov 2005 11:51:47 +0000 Subject: r11907: added testing of SMB2 keepalive (This used to be commit 6096d23fe0e58b6c3e4174a70a0faebd88fd5f79) --- source4/torture/smb2/connect.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/torture/smb2') diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c index a4f4cb6ba4..4973dcee6f 100644 --- a/source4/torture/smb2/connect.c +++ b/source4/torture/smb2/connect.c @@ -200,7 +200,6 @@ BOOL torture_smb2_connect(void) h1 = torture_smb2_create(tree, "test9.dat"); h2 = torture_smb2_create(tree, "test9.dat"); -// h2 = torture_smb2_create(tree, "test9test9test9t9.dat"); torture_smb2_write(tree, h1); torture_smb2_close(tree, h1); torture_smb2_close(tree, h2); @@ -229,6 +228,12 @@ BOOL torture_smb2_connect(void) return False; } + status = smb2_keepalive(tree); + if (!NT_STATUS_IS_OK(status)) { + printf("keepalive failed? - %s\n", nt_errstr(status)); + return False; + } + talloc_free(mem_ctx); return True; -- cgit