Author: metze
Date: 2006-07-01 07:49:02 +0000 (Sat, 01 Jul 2006)
New Revision: 16725

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16725

Log:
don't ignore errors

metze
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    2006-07-01 07:47:49 UTC 
(rev 16724)
+++ branches/SAMBA_4_0/source/torture/smb2/connect.c    2006-07-01 07:49:02 UTC 
(rev 16725)
@@ -203,9 +203,21 @@
 
        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)) {

Reply via email to