diff options
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 66d7bbb101..b48bf78e7e 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -24,6 +24,8 @@ #include "torture/torture.h" #include "build.h" #include "lib/util/dlinklist.h" +#include "auth/credentials/credentials.h" +#include "lib/cmdline/popt_common.h" _PUBLIC_ int torture_numops=10; _PUBLIC_ int torture_entries=1000; @@ -42,12 +44,13 @@ bool torture_register_suite(struct torture_suite *suite) } struct torture_context *torture_context_init(TALLOC_CTX *mem_ctx, - const struct torture_ui_ops *ui_ops) + const struct torture_ui_ops *ui_ops) { struct torture_context *torture = talloc_zero(mem_ctx, - struct torture_context); + struct torture_context); torture->ui_ops = ui_ops; torture->returncode = true; + torture->ev = cli_credentials_get_event_context(cmdline_credentials); if (ui_ops->init) ui_ops->init(torture); |