diff options
author | Michael Adam <obnox@samba.org> | 2012-08-08 11:27:19 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-08-09 15:25:16 +0200 |
commit | 1db70c0b8b032bb3b5c544c6714a270e170aa201 (patch) | |
tree | a1a72e22a028478f8662691a95c773dff3ff41cd | |
parent | a70a4ad73142600d8033e9d427b24c3452a56432 (diff) | |
download | samba-1db70c0b8b032bb3b5c544c6714a270e170aa201.tar.gz |
s3:torture:delete: untangle function call from result check
-rw-r--r-- | source3/torture/torture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index fb0da0281ae..6ba228460f7 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3994,7 +3994,8 @@ static bool run_deletetest(int dummy) /* This should fail - file should no longer be there. */ - if (NT_STATUS_IS_OK(cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1))) { + status = cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1); + if (NT_STATUS_IS_OK(status)) { printf("[3] open of %s succeeded should have been deleted on close !\n", fname); status = cli_close(cli1, fnum1); if (!NT_STATUS_IS_OK(status)) { |