summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-08-09 11:12:55 +0200
committerMichael Adam <obnox@samba.org>2012-08-09 18:01:50 +0200
commitf64c970e3e70632e9721f8d4993c68b3841bbfa5 (patch)
treef1b549aa8f41a44a22da039f540ba949346bf581 /source4/torture
parent2352227b6609c6ba5111201db25711d9c7840dc1 (diff)
downloadsamba-f64c970e3e70632e9721f8d4993c68b3841bbfa5.tar.gz
samba-f64c970e3e70632e9721f8d4993c68b3841bbfa5.tar.bz2
samba-f64c970e3e70632e9721f8d4993c68b3841bbfa5.zip
s4:torture:basic: check the return status of the last open in deltest16
Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Aug 9 18:01:50 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/basic/delete.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/basic/delete.c b/source4/torture/basic/delete.c
index 6a90efd97e..7fb93456a5 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;
}