diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smb2/connect.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c index 3b12e54a3b..bd11f310d9 100644 --- a/source4/torture/smb2/connect.c +++ b/source4/torture/smb2/connect.c @@ -203,9 +203,21 @@ BOOL torture_smb2_connect(struct torture_context *torture) h1 = torture_smb2_create(tree, "test9.dat"); h2 = torture_smb2_create(tree, "test9.dat"); - torture_smb2_write(tree, h1); - torture_smb2_close(tree, h1); - torture_smb2_close(tree, h2); + status = torture_smb2_write(tree, h1); + if (!NT_STATUS_IS_OK(status)) { + printf("Write failed - %s\n", nt_errstr(status)); + return False; + } + status = torture_smb2_close(tree, h1); + if (!NT_STATUS_IS_OK(status)) { + printf("Close failed - %s\n", nt_errstr(status)); + return False; + } + status = torture_smb2_close(tree, h2); + if (!NT_STATUS_IS_OK(status)) { + printf("Close failed - %s\n", nt_errstr(status)); + return False; + } status = smb2_util_close(tree, h1); if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { |