summaryrefslogtreecommitdiff
path: root/lib/talloc/testsuite.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-08talloc: Test the pooled objectVolker Lendecke1-0/+36
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-09-08talloc: Allow nested pools.Volker Lendecke1-0/+26
Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org>
2013-08-27Add simple limited pool tests to test_memlimit().Jeremy Allison1-0/+27
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo Sorce <idra@samba.org>
2012-10-05Add tests for talloc_memlimitSimo Sorce1-0/+172
Autobuild-User(master): Simo Sorce <idra@samba.org> Autobuild-Date(master): Fri Oct 5 07:36:38 CEST 2012 on sn-devel-104
2012-07-18talloc: use a struct for pool headers.Rusty Russell1-1/+1
This neatens the code a bit (we should do a similar thing for all the TALLOC_CHUNK macros). Two subtler changes: (1) As a result of the struct, we actually pack object_count into the talloc header on 32-bit platforms (since the header is 40 bytes, but needs to be 16-byte aligned). (2) I avoid VALGRIND_MAKE_MEM_UNDEFINED on memmove when we resize the only entry in a pool; that's done later anyway. With -O2 on my 11.04 Ubuntu 32-bit x86 laptop, the talloc_pool speed as measured by testsuite.c actually increases 10%. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-01-10talloc/testsuite: fix compiler warningsStefan Metzmacher1-1/+2
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 10 13:31:33 CET 2012 on sn-devel-104
2011-10-22talloc/testsuite: remove #if _SAMBA_BUILD_==3Stefan Metzmacher1-9/+0
We don't include "includes.h" anymore... metze
2011-08-04talloc: check block count aftter references testAndrew Tridgell1-0/+1
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-07-29talloc: added test suite for talloc_free_children()Andrew Tridgell1-0/+44
this tests the fix from Simo Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104
2011-05-17talloc: test talloc_steal out of a talloc_poolStefan Metzmacher1-0/+69
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 09:43:01 CEST 2011 on sn-devel-104
2011-05-17talloc: add memset() calls to test_pool()Stefan Metzmacher1-0/+17
This way we the pool based valgrind code. metze
2011-04-08talloc/testsuite: avoid memory leak reported by valgrindStefan Metzmacher1-1/+1
metze Signed-off-By: Andrew Tridgell <tridge@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Apr 8 10:15:41 CEST 2011 on sn-devel-104
2011-04-08talloc/testsuite: test more talloc_pool related thingsStefan Metzmacher1-0/+55
metze Signed-off-By: Andrew Tridgell <tridge@samba.org>
2011-01-05talloc: added a test for the use after free Rusty foundAndrew Tridgell1-0/+17
2011-01-03talloc: Fix warnings in test codeBrad Hards1-1/+4
This should not change any behaviour - the intent is just to reduce the "nuisance" warnings. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 3 11:12:39 CET 2011 on sn-devel-104
2010-04-20talloc: there is no ambiguity when freeing a ptr with a null parentAndrew Tridgell1-0/+33
when a ptr has a single reference and a NULL parent, then talloc_free(ptr) is not ambiguous, as the caller could not have done a talloc_free(NULL) to free the memory Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-03-29talloc: testsuite should use <talloc.h> not "talloc.h"Andrew Tridgell1-1/+1
if we are using the system talloc, the testsuite needs to use the system talloc.h
2009-09-20talloc: fixed talloc_disable_null_tracking()Andrew Tridgell1-1/+2
When we disable null tracking, we need to move any existing objects that are under the null_context to be parented by the true NULL context. We also need a new talloc_enable_null_tracking_no_autofree() function, as the talloc testsuite cannot cope with the moving of the autofree context under the null_context as it wants to check exact counts of objects under the null_context, and smbtorture has a large number of objects in the autofree_context from .init functions
2009-08-24talloc/testsuite: use talloc_set_log_fn() and log to stdoutStefan Metzmacher1-0/+6
metze
2009-08-24talloc/testsuite: report __location__ of testsuite failuresStefan Metzmacher1-6/+6
metze
2009-08-24talloc/testsuite: add infrastructure to test abortsStefan Metzmacher1-0/+20
metze
2009-08-24talloc/testsuite: reset the globals after each subtestStefan Metzmacher1-3/+29
metze
2009-07-01fixed the talloc testsuite for the recent changesAndrew Tridgell1-6/+10
2008-09-22lib/talloc: move main() out of testsuite.cStefan Metzmacher1-10/+0
metze
2008-09-17Move common libraries from root to lib/.Jelmer Vernooij1-0/+1152