From f86444b516eed15f385085542cc14a612fe3db03 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 16 Feb 2007 12:47:08 +0000 Subject: r21381: dfs tests. (This used to be commit 3ef8a6834df63a0bfa68996daea6432e98243d40) --- source4/torture/ndr/ndr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/torture/ndr/ndr.c') diff --git a/source4/torture/ndr/ndr.c b/source4/torture/ndr/ndr.c index 2d949ae044..c8c2b05df3 100644 --- a/source4/torture/ndr/ndr.c +++ b/source4/torture/ndr/ndr.c @@ -45,7 +45,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"); - return check_fn(tctx, ds); + if (check_fn != NULL) + return check_fn(tctx, ds); + else + return true; } _PUBLIC_ struct torture_test *_torture_suite_add_ndr_pull_test( @@ -89,6 +92,7 @@ NTSTATUS torture_ndr_init(void) torture_suite_add_suite(suite, ndr_atsvc_suite(suite)); torture_suite_add_suite(suite, ndr_lsa_suite(suite)); torture_suite_add_suite(suite, ndr_epmap_suite(suite)); + torture_suite_add_suite(suite, ndr_dfs_suite(suite)); torture_register_suite(suite); -- cgit