diff options
author | Michael Adam <obnox@samba.org> | 2012-08-08 11:24:29 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-08-09 15:13:33 +0200 |
commit | a70a4ad73142600d8033e9d427b24c3452a56432 (patch) | |
tree | cf572aa7e5a485c0054d10c5459abcda2e7d9784 /source3 | |
parent | 11d60d13dc54ff154b2a7bb53e326ed2180d473c (diff) | |
download | samba-a70a4ad73142600d8033e9d427b24c3452a56432.tar.gz samba-a70a4ad73142600d8033e9d427b24c3452a56432.tar.bz2 samba-a70a4ad73142600d8033e9d427b24c3452a56432.zip |
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/torture.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 306bca1237..fb0da0281a 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3950,8 +3950,11 @@ static bool run_deletetest(int dummy) /* This should fail with a sharing violation - open for delete is only compatible with SHARE_DELETE. */ - if (NT_STATUS_IS_OK(cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS, FILE_ATTRIBUTE_NORMAL, - FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0, 0, &fnum2))) { + status = cli_ntcreate(cli1, fname, 0, GENERIC_READ_ACCESS, + FILE_ATTRIBUTE_NORMAL, + FILE_SHARE_READ|FILE_SHARE_WRITE, + FILE_OPEN, 0, 0, &fnum2); + if (NT_STATUS_IS_OK(status)) { printf("[3] open - 2 of %s succeeded - should have failed.\n", fname); correct = False; goto fail; |