From 43405e07446bfaaee25bcd0b1140667b533e59e3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Nov 2005 11:12:08 +0000 Subject: r11904: added smb2_tdis() testing (This used to be commit e2ed615a44d825f8c46755408a1a1657222a508b) --- source4/torture/smb2/connect.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'source4/torture/smb2') diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c index 080bb5a1c5..a1215e3ae7 100644 --- a/source4/torture/smb2/connect.c +++ b/source4/torture/smb2/connect.c @@ -195,7 +195,19 @@ BOOL torture_smb2_connect(void) 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; -- cgit