diff options
author | Michael Adam <obnox@samba.org> | 2012-08-08 12:18:55 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-08-09 15:29:26 +0200 |
commit | ef3684739a5bf65f70d35f2fdbc83b93cefd1608 (patch) | |
tree | 1c05b27920429b943074e5ee598bcc9fb9b07a8c /source3 | |
parent | 4e75b0c717506b0cb392083f6ff07d581a9cf6eb (diff) | |
download | samba-ef3684739a5bf65f70d35f2fdbc83b93cefd1608.tar.gz samba-ef3684739a5bf65f70d35f2fdbc83b93cefd1608.tar.bz2 samba-ef3684739a5bf65f70d35f2fdbc83b93cefd1608.zip |
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3')
-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 bb0f1bbfce..e3f77676f9 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -4279,7 +4279,8 @@ static bool run_deletetest(int dummy) } /* This should fail.. */ - 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("[10] open of %s succeeded should have been deleted on close !\n", fname); goto fail; correct = False; |