From e55e7c96f86d3ac69be083edbe3f51adccc6c017 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 18 Feb 2007 12:00:53 +0000 Subject: r21423: Extend testsuite, check that all bytes have been consumed. DsBind fails that test, so disabling it for now. (This used to be commit d6026c2046a26f42ca0cd6ebf1f45488fbfb22e1) --- source4/torture/ndr/ndr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture/ndr/ndr.c') diff --git a/source4/torture/ndr/ndr.c b/source4/torture/ndr/ndr.c index 919ea2ce49..55e2427210 100644 --- a/source4/torture/ndr/ndr.c +++ b/source4/torture/ndr/ndr.c @@ -22,6 +22,7 @@ #include "includes.h" #include "torture/ndr/ndr.h" #include "torture/ndr/proto.h" +#include "torture/ui.h" #include "util/dlinklist.h" struct ndr_pull_test_data { @@ -45,6 +46,10 @@ static bool wrap_ndr_pull_test(struct torture_context *tctx, torture_assert_ntstatus_ok(tctx, data->pull_fn(ndr, data->ndr_flags, ds), "pulling"); + torture_assert(tctx, ndr->offset == ndr->data_size, + talloc_asprintf(tctx, + "%d unread bytes", ndr->data_size - ndr->offset)); + if (check_fn != NULL) return check_fn(tctx, ds); else -- cgit