summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/testsuite.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-31 09:26:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:57 -0500
commit722d20f4ddef98ba8f305ea858c54e5df54ca27c (patch)
tree444f5a6845909d995e5744dfef22c52ddf421234 /source4/lib/talloc/testsuite.c
parentcca9dbb66f605edc950dc048eb51cc39d14a01d3 (diff)
downloadsamba-722d20f4ddef98ba8f305ea858c54e5df54ca27c.tar.gz
samba-722d20f4ddef98ba8f305ea858c54e5df54ca27c.tar.bz2
samba-722d20f4ddef98ba8f305ea858c54e5df54ca27c.zip
r17958: as talloc_init() enabled null tracking, we should avoid to use it
in smbtorture, and in the LOCAL-TALLOC we should reset the null tracking also make bin/smbtorture //url/foo LOCAL-TALLOC LOCAL-TALLOC possible metze (This used to be commit d1dd3df5e4fd21f5cbd00e472438fe3eadb266e5)
Diffstat (limited to 'source4/lib/talloc/testsuite.c')
-rw-r--r--source4/lib/talloc/testsuite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c
index 013f01cc2c..ca5e9042d3 100644
--- a/source4/lib/talloc/testsuite.c
+++ b/source4/lib/talloc/testsuite.c
@@ -910,6 +910,7 @@ static BOOL test_loop(void)
printf("FAILED TO FIRE LOOP DESTRUCTOR\n");
return False;
}
+ loop_destructor_count = 0;
return True;
}
@@ -1021,6 +1022,7 @@ BOOL torture_local_talloc(struct torture_context *torture)
{
BOOL ret = True;
+ talloc_disable_null_tracking();
talloc_enable_null_tracking();
ret &= test_ref1();