1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r16725: don't ignore errors

metze
(This used to be commit 4228230196)
This commit is contained in:
Stefan Metzmacher 2006-07-01 07:49:02 +00:00 committed by Gerald (Jerry) Carter
parent c063450a1e
commit 348ad95ea7

View File

@ -203,9 +203,21 @@ BOOL torture_smb2_connect(struct torture_context *torture)
h1 = torture_smb2_create(tree, "test9.dat"); h1 = torture_smb2_create(tree, "test9.dat");
h2 = torture_smb2_create(tree, "test9.dat"); h2 = torture_smb2_create(tree, "test9.dat");
torture_smb2_write(tree, h1); status = torture_smb2_write(tree, h1);
torture_smb2_close(tree, h1); if (!NT_STATUS_IS_OK(status)) {
torture_smb2_close(tree, h2); 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); status = smb2_util_close(tree, h1);
if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {