diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-01 07:49:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:41 -0500 |
commit | 348ad95ea7daa7ed17a0d50ebf642fc41770b631 (patch) | |
tree | 30aba607408cdbd9b2c01f3dacc855a5452b4bba /source4 | |
parent | c063450a1e04934f16306f7cc368d007f6ab2dc7 (diff) | |
download | samba-348ad95ea7daa7ed17a0d50ebf642fc41770b631.tar.gz samba-348ad95ea7daa7ed17a0d50ebf642fc41770b631.tar.bz2 samba-348ad95ea7daa7ed17a0d50ebf642fc41770b631.zip |
r16725: don't ignore errors
metze
(This used to be commit 42282301961a13055869445eb9d00492bdbbb61b)
Diffstat (limited to 'source4')
-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)) { |