summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/raw/context.c13
-rw-r--r--source4/torture/raw/raw.c2
2 files changed, 12 insertions, 3 deletions
diff --git a/source4/torture/raw/context.c b/source4/torture/raw/context.c
index 0e0db99e4d..45300cf249 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 cf3a5cb2d1..9686efa80c 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);