s4:torture:basic: check the return status of the last open in deltest16
authorMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 09:12:55 +0000 (11:12 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 16:01:50 +0000 (18:01 +0200)
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Aug  9 18:01:50 CEST 2012 on sn-devel-104

source4/torture/basic/delete.c

index 6a90efd97e0ae9f14bafd1a7d90591700401e984..7fb93456a52438b4a8e5ccc0dc4d1e4563de076e 100644 (file)
@@ -878,6 +878,8 @@ static bool deltest16(struct torture_context *tctx, struct smbcli_state *cli1, s
        torture_assert(tctx, fnum1 == -1, talloc_asprintf(tctx, "open of %s succeeded (should fail)", 
                       fname));
 
+       CHECK_STATUS(cli1, NT_STATUS_OBJECT_NAME_NOT_FOUND);
+
        return correct;
 }