From 7c0c1fabd08cac83f306240f00a98901543a367f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 2 May 2012 13:46:34 +0200 Subject: [PATCH] s4:torture/raw: make torture_raw_context a test suite metze --- source4/torture/raw/context.c | 13 +++++++++++-- source4/torture/raw/raw.c | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/source4/torture/raw/context.c b/source4/torture/raw/context.c index 0e0db99e4de..45300cf249b 100644 --- a/source4/torture/raw/context.c +++ b/source4/torture/raw/context.c @@ -889,8 +889,8 @@ static bool torture_raw_context_int(struct torture_context *tctx, /* basic testing of session/tree context calls */ -bool torture_raw_context(struct torture_context *torture, - struct smbcli_state *cli) +static bool torture_raw_context_all(struct torture_context *torture, + struct smbcli_state *cli) { bool ret = true; if (lpcfg_use_spnego(torture->lp_ctx)) { @@ -902,3 +902,12 @@ bool torture_raw_context(struct torture_context *torture, return ret; } + +struct torture_suite *torture_raw_context(TALLOC_CTX *mem_ctx) +{ + struct torture_suite *suite = torture_suite_create(mem_ctx, "context"); + + torture_suite_add_1smb_test(suite, "all", torture_raw_context_all); + + return suite; +} diff --git a/source4/torture/raw/raw.c b/source4/torture/raw/raw.c index cf3a5cb2d18..9686efa80cd 100644 --- a/source4/torture/raw/raw.c +++ b/source4/torture/raw/raw.c @@ -55,7 +55,7 @@ NTSTATUS torture_raw_init(void) torture_suite_add_suite(suite, torture_raw_read(suite)); torture_suite_add_suite(suite, torture_raw_write(suite)); torture_suite_add_suite(suite, torture_raw_lock(suite)); - torture_suite_add_1smb_test(suite, "context", torture_raw_context); + torture_suite_add_suite(suite, torture_raw_context(suite)); torture_suite_add_suite(suite, torture_raw_session(suite)); torture_suite_add_suite(suite, torture_raw_rename(suite)); torture_suite_add_1smb_test(suite, "seek", torture_raw_seek); -- 2.11.4.GIT