return true;
}
-#define CHECK_STATUS(status, correct) do { \
- if (!NT_STATUS_EQUAL(status, correct)) { \
- torture_result(tctx, TORTURE_FAIL, "(%s) Incorrect status %s - should be %s\n", \
- __location__, nt_errstr(status), nt_errstr(correct)); \
- ret = false; \
- goto done; \
- }} while (0)
-
/*
* Helper function to verify a security descriptor, by querying
* and comparing against the passed in sd.
SECINFO_GROUP |
SECINFO_DACL;
status = smb2_getinfo_file(tree, tctx, &q);
- CHECK_STATUS(status, NT_STATUS_OK);
+ torture_assert_ntstatus_ok(tctx, status, "");
if (!security_acl_equal(
q.query_secdesc.out.sd->dacl, sd->dacl)) {
ret = false;
}
- done:
return ret;
}
q.standard.level = RAW_FILEINFO_SMB2_ALL_INFORMATION;
q.standard.in.file.handle = handle;
status = smb2_getinfo_file(tree, tctx, &q);
- CHECK_STATUS(status, NT_STATUS_OK);
+ torture_assert_ntstatus_ok(tctx, status, "");
q.all_info2.out.attrib &= ~(FILE_ATTRIBUTE_ARCHIVE | FILE_ATTRIBUTE_NONINDEXED);
ret = false;
}
- done:
return ret;
}