From: Michael Adam Date: Thu, 9 Aug 2012 09:12:55 +0000 (+0200) Subject: s4:torture:basic: check the return status of the last open in deltest16 X-Git-Tag: samba-4.0.0beta6~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f64c970e3e70632e9721f8d4993c68b3841bbfa5;p=thirdparty%2Fsamba.git s4:torture:basic: check the return status of the last open in deltest16 Autobuild-User(master): Michael Adam Autobuild-Date(master): Thu Aug 9 18:01:50 CEST 2012 on sn-devel-104 --- diff --git a/source4/torture/basic/delete.c b/source4/torture/basic/delete.c index 6a90efd97e0..7fb93456a52 100644 --- a/source4/torture/basic/delete.c +++ b/source4/torture/basic/delete.c @@ -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; }