diff options
author | Michael Adam <obnox@samba.org> | 2012-08-08 20:07:38 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-08-09 15:29:32 +0200 |
commit | 2aded6aebd4187cd192f9202b35dfef6d258f2da (patch) | |
tree | d25ab2a8d613f7dde5812b871bf951e1308fd1f5 /source3/torture | |
parent | ef3684739a5bf65f70d35f2fdbc83b93cefd1608 (diff) | |
download | samba-2aded6aebd4187cd192f9202b35dfef6d258f2da.tar.gz samba-2aded6aebd4187cd192f9202b35dfef6d258f2da.tar.xz samba-2aded6aebd4187cd192f9202b35dfef6d258f2da.zip |
s3:torture:delete: untangle function call from result check
Diffstat (limited to 'source3/torture')
-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 e3f77676f9..0b6f5100a0 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3922,7 +3922,8 @@ static bool run_deletetest(int dummy) goto 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("[2] open of %s succeeded should have been deleted on close !\n", fname); status = cli_close(cli1, fnum1); if (!NT_STATUS_IS_OK(status)) { |