]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:torture:delete: untangle function call from result check
authorMichael Adam <obnox@samba.org>
Wed, 8 Aug 2012 10:18:55 +0000 (12:18 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 13:29:26 +0000 (15:29 +0200)
source3/torture/torture.c

index bb0f1bbfce5d463449fc97351143459f1d99003e..e3f77676f9ae4aa2098cc69db9a831bfe6f43b74 100644 (file)
@@ -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;