svn commit: samba r11904 - in branches/SAMBA_4_0/source/torture/smb2: .

tridge at samba.org tridge at samba.org
Fri Nov 25 11:12:12 GMT 2005


Author: tridge
Date: 2005-11-25 11:12:08 +0000 (Fri, 25 Nov 2005)
New Revision: 11904

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

Log:

added smb2_tdis() testing




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:11:47 UTC (rev 11903)
+++ branches/SAMBA_4_0/source/torture/smb2/connect.c	2005-11-25 11:12:08 UTC (rev 11904)
@@ -195,8 +195,20 @@
 	torture_smb2_close(tree, h1);
 	torture_smb2_close(tree, h2);
 
-	status = smb2_logoff(tree);
+	status = smb2_tdis(tree);
 	if (!NT_STATUS_IS_OK(status)) {
+		printf("tdis failed - %s\n", nt_errstr(status));
+		return False;
+	}
+
+	status = smb2_tdis(tree);
+	if (!NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_NAME_DELETED)) {
+		printf("tdis should have disabled session - %s\n", nt_errstr(status));
+		return False;
+	}
+
+ 	status = smb2_logoff(tree);
+	if (!NT_STATUS_IS_OK(status)) {
 		printf("Logoff failed - %s\n", nt_errstr(status));
 		return False;
 	}



More information about the samba-cvs mailing list