summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-25 11:51:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:47 -0500
commit42cba737c0e63069c08fc65396f389d0fe45764a (patch)
tree0345b9fcac30bf4343b15f19c4a426995b41978b /source4/torture
parent1e935fcbde889a0f3735d4698e61bde6b93eaa39 (diff)
downloadsamba-42cba737c0e63069c08fc65396f389d0fe45764a.tar.gz
samba-42cba737c0e63069c08fc65396f389d0fe45764a.tar.bz2
samba-42cba737c0e63069c08fc65396f389d0fe45764a.zip
r11907: added testing of SMB2 keepalive
(This used to be commit 6096d23fe0e58b6c3e4174a70a0faebd88fd5f79)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/connect.c7
1 files changed, 6 insertions, 1 deletions
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;