svn commit: samba r11902 - in
branches/SAMBA_4_0/source/torture/smb2: .
tridge at samba.org
tridge at samba.org
Fri Nov 25 11:05:23 GMT 2005
Author: tridge
Date: 2005-11-25 11:05:21 +0000 (Fri, 25 Nov 2005)
New Revision: 11902
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11902
Log:
added smb2_logoff() 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:04:42 UTC (rev 11901)
+++ branches/SAMBA_4_0/source/torture/smb2/connect.c 2005-11-25 11:05:21 UTC (rev 11902)
@@ -182,6 +182,7 @@
TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct smb2_tree *tree;
struct smb2_handle h1, h2;
+ NTSTATUS status;
if (!torture_smb2_connection(mem_ctx, &tree)) {
return False;
@@ -194,6 +195,18 @@
torture_smb2_close(tree, h1);
torture_smb2_close(tree, h2);
+ status = smb2_logoff(tree);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("Logoff failed - %s\n", nt_errstr(status));
+ return False;
+ }
+
+ status = smb2_logoff(tree);
+ if (!NT_STATUS_EQUAL(status, NT_STATUS_USER_SESSION_DELETED)) {
+ printf("Logoff should have disabled session - %s\n", nt_errstr(status));
+ return False;
+ }
+
talloc_free(mem_ctx);
return True;
More information about the samba-cvs
mailing list