From 978dee520e8ceb43c2e63383197a506913d7e8b4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 12 Jun 2006 19:48:58 +0000 Subject: r16164: Convert to UI API (This used to be commit 5cd95ec885cb0ffd5b40f53a5a0193388ec5fc6a) --- source4/torture/local/idtree.c | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'source4/torture/local/idtree.c') diff --git a/source4/torture/local/idtree.c b/source4/torture/local/idtree.c index 7afc5e9ab9..8d776219db 100644 --- a/source4/torture/local/idtree.c +++ b/source4/torture/local/idtree.c @@ -22,6 +22,7 @@ #include "includes.h" #include "torture/torture.h" +#include "torture/ui.h" BOOL torture_local_idtree(struct torture_context *torture) { @@ -29,15 +30,14 @@ BOOL torture_local_idtree(struct torture_context *torture) int i; int *ids; int *present; - BOOL ret = True; extern int torture_numops; int n = torture_numops; - void *ctx = talloc_new(NULL); + struct torture_test *test = torture_test(torture, "idtree", "idtree"); - idr = idr_init(ctx); + idr = idr_init(test); - ids = talloc_zero_array(ctx, int, n); - present = talloc_zero_array(ctx, int, n); + ids = talloc_zero_array(test, int, n); + present = talloc_zero_array(test, int, n); for (i=0;i