diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-01 07:49:02 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2006-07-01 07:49:02 +0000 |
commit | 7d811bf3595153bb23b05bcc39c9453d191c52c7 (patch) | |
tree | 32d9ee411279b86d57c1f1cf18fa2f2ee927c1f9 /source/torture/smb2 | |
parent | d3136e3055b9dfd06d61dfd969a70c827b08559b (diff) | |
download | samba-7d811bf3595153bb23b05bcc39c9453d191c52c7.tar.gz samba-7d811bf3595153bb23b05bcc39c9453d191c52c7.tar.xz samba-7d811bf3595153bb23b05bcc39c9453d191c52c7.zip |
r16725: don't ignore errors
metze
Diffstat (limited to 'source/torture/smb2')
-rw-r--r-- | source/torture/smb2/connect.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/torture/smb2/connect.c b/source/torture/smb2/connect.c index 3b12e54a3b9..bd11f310d91 100644 --- a/source/torture/smb2/connect.c +++ b/source/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)) { |