Author: tridge
Date: 2005-11-25 11:51:47 +0000 (Fri, 25 Nov 2005)
New Revision: 11907

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11907

Log:

added testing of SMB2 keepalive

Modified:
   branches/SAMBA_4_0/source/torture/smb2/connect.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/smb2/connect.c
===================================================================
--- branches/SAMBA_4_0/source/torture/smb2/connect.c    2005-11-25 11:51:15 UTC 
(rev 11906)
+++ branches/SAMBA_4_0/source/torture/smb2/connect.c    2005-11-25 11:51:47 UTC 
(rev 11907)
@@ -200,7 +200,6 @@
 
        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 @@
                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;

Reply via email to