summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-10 05:23:17 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-10 05:23:17 +0200
commitad8e3e41923e20d401294eccd4da028e0f40c904 (patch)
tree6b39cb15e1b82a7d7a090e9e7c3904fd36916088 /source4/torture
parent12840597c856a6521ee088a5c96e8ffdd1716252 (diff)
downloadsamba-ad8e3e41923e20d401294eccd4da028e0f40c904.tar.gz
samba-ad8e3e41923e20d401294eccd4da028e0f40c904.tar.bz2
samba-ad8e3e41923e20d401294eccd4da028e0f40c904.zip
Add infrastructure for returning ProvisionResult in C provision code.
(This used to be commit 98c3d34eb233be284e8c8994cca337be25c72968)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/local/torture.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/local/torture.c b/source4/torture/local/torture.c
index 718bd38aad..17d83456d5 100644
--- a/source4/torture/local/torture.c
+++ b/source4/torture/local/torture.c
@@ -44,6 +44,7 @@ static bool test_provision(struct torture_context *tctx)
{
NTSTATUS status;
struct provision_settings *settings = talloc(tctx, struct provision_settings);
+ struct provision_result result;
char *targetdir = NULL;
torture_assert_ntstatus_ok(tctx, torture_temp_dir(tctx, "torture_provision", &targetdir),
@@ -64,10 +65,13 @@ static bool test_provision(struct torture_context *tctx)
settings->ntds_dn_str = NULL;
settings->machine_password = "geheim";
- status = provision_bare(settings, tctx->lp_ctx, settings);
+ status = provision_bare(settings, tctx->lp_ctx, settings, &result);
torture_assert_ntstatus_ok(tctx, status, "provision");
+ torture_assert_str_equal(tctx, result.domaindn, "DC=EXAMPLE,DC=COM",
+ "domaindn incorrect");
+
return true;
}