From 1db2f0d3a19913a460bec9eb516b4d96e9a3e595 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Mon, 26 Jun 2006 21:21:59 +0000 Subject: [PATCH] r16533: Perform a cleanup after testing. Also, add changed name argument. This test currently triggers internal corruption in ldb database, according to status code returned. I'm investigating win servers behaviour here. rafal (This used to be commit c73f4e11e4747b907dffafed09d354e12307435a) --- source4/torture/libnet/libnet_user.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c index 4f1de6ed40f..a611480d9ff 100644 --- a/source4/torture/libnet/libnet_user.c +++ b/source4/torture/libnet/libnet_user.c @@ -331,8 +331,10 @@ BOOL torture_modifyuser(struct torture_context *torture) mem_ctx = talloc_init("test_modifyuser"); + ZERO_STRUCT(req); req.in.user_name = TEST_USERNAME; req.in.domain_name = lp_workgroup(); + req.in.account_name = TEST_CHANGEDUSERNAME; status = libnet_ModifyUser(ctx, mem_ctx, &req); if (!NT_STATUS_IS_OK(status)) { @@ -340,6 +342,11 @@ BOOL torture_modifyuser(struct torture_context *torture) return False; } + if (!test_cleanup(ctx->samr_pipe, mem_ctx, &ctx->domain.handle, TEST_CHANGEDUSERNAME)) { + printf("cleanup failed\n"); + return False; + } + done: talloc_free(prep_mem_ctx); talloc_free(mem_ctx); -- 2.11.4.GIT