]> git.samba.org - obnox/samba/samba-obnox.git/commitdiff
s4.torture.smb2/session: Add torture assert for unlink
authorAnoop C S <anoopcs@redhat.com>
Thu, 29 Oct 2015 14:50:52 +0000 (20:20 +0530)
committerMichael Adam <obnox@samba.org>
Sat, 31 Oct 2015 11:47:13 +0000 (12:47 +0100)
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/session.c

index f1d3b7f78b65c294ad1d3fa0a0205499dc3f7289..755f1a0167f446e883ef74a91b69db88789970a6 100644 (file)
@@ -678,7 +678,10 @@ bool test_session_reauth5(struct torture_context *tctx, struct smb2_tree *tree)
 
        snprintf(fname2, sizeof(fname2), "%s\\file2.dat", dname);
 
-       smb2_util_unlink(tree, fname2);
+       status = smb2_util_unlink(tree, fname2);
+       torture_assert_ntstatus_ok_goto(tctx, status, ret, done,
+                                       "smb2_util_unlink failed");
+
 
        ZERO_STRUCT(sfinfo);
        sfinfo.rename_information.level = RAW_SFILEINFO_RENAME_INFORMATION;