diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-05-17 08:47:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:34 -0500 |
commit | c42219d7352bd2e7a6413f7ae1cd0fd5cded1d95 (patch) | |
tree | c45f3949f0e5f434f129c6346a99d3fa0aab96df /source4/torture/torture.c | |
parent | ad1cde253e5938acf2c57458b5af04f32f45edbf (diff) | |
download | samba-c42219d7352bd2e7a6413f7ae1cd0fd5cded1d95.tar.gz |
r22969: fix some more places where we could end up with more than one event
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
(This used to be commit c0f65eb6562e13530337c23e3447a6aa6eb8fc17)
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 66d7bbb1018..b48bf78e7ee 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); |