diff options
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index f83a7330c2..e6629eb214 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -43,6 +43,21 @@ bool torture_register_suite(struct torture_suite *suite) return torture_suite_add_suite(torture_root, suite); } +struct torture_context *torture_context_init(TALLOC_CTX *mem_ctx, + const char *known_failures_file, + const struct torture_ui_ops *ui_ops) +{ + int numlines; + struct torture_context *torture = talloc_zero(mem_ctx, + struct torture_context); + torture->expected_failures = file_lines_load(known_failures_file, &numlines, + torture); + torture->ui_ops = ui_ops; + + return torture; +} + + int torture_init(void) { init_module_fn static_init[] = STATIC_torture_MODULES; |