]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbtorture: Fix epmapper.Map_full test
authorVolker Lendecke <vl@samba.org>
Fri, 10 Sep 2021 10:22:46 +0000 (12:22 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 18 Sep 2021 00:02:27 +0000 (00:02 +0000)
For detailed knownfail on subtests we need torture_assert() calls

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/rpc/epmapper.c

index be0acc0946ef9a8a478db012bc7fc358b50da608..72b5165c6e8cc25f98b7ad92f98ae6acf373f2b4 100644 (file)
@@ -251,19 +251,13 @@ static bool test_Map_full(struct torture_context *tctx,
        torture_assert_ntstatus_ok(tctx, status, "dcerpc_binding_set_abstract_syntax");
 
        ok = test_Insert(tctx, h, obj, annotation, b);
-       if (!ok) {
-               return false;
-       }
+       torture_assert(tctx, ok, "test_Insert failed");
 
        ok = test_Map_tcpip(tctx, h, obj);
-       if (!ok) {
-               return false;
-       }
+       torture_assert(tctx, ok, "test_Map_tcpip failed");
 
        ok = test_Delete(tctx, h, annotation, b);
-       if (!ok) {
-               return false;
-       }
+       torture_assert(tctx, ok, "test_Delete failed");
 
        return true;
 }