summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/testsuite.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r11984: LGPL on header and testsuite as wellAndrew Tridgell1-11/+15
(This used to be commit ed90975bf50644f00da681eb7cc41123abc60f81)
2007-10-10r8032: added loop detection into talloc. Robert Collins found a way to make aAndrew Tridgell1-0/+21
memory loop with talloc_unlink(), so now we detect it and handle it (This used to be commit 563058e78b8c74e821fabf6a43fa861c1ad09944)
2007-10-10r6808: - test for gcov not neededAndrew Tridgell1-1/+10
- samba malloc wrapper avoidance not needed now we don't use includes.h - make testsuite work when BOOL, True, False already defined (This used to be commit c8a274c8735957a8a8dd21421abd65a8a1af20f7)
2007-10-10r6807: Fix in-tree build of talloc testsuiteJelmer Vernooij1-7/+0
(This used to be commit 3541ebe31bef8ccae7a8a1ea4f451ddfbd24460a)
2007-10-10r6804: Add config.h for talloc (and use it)Jelmer Vernooij1-4/+6
(This used to be commit c2ce09d38003fd43212de9cd08e4a781cc2aff88)
2007-10-10r6660: Sorry for the spam... I think now I've got a version that should ↵Volker Lendecke1-1/+13
compile on trunk, 3_0 and 4_0. Volker (This used to be commit 777c489cad610fef140ec80d5644111b04a314c1)
2007-10-10r5142: fix compiler warningStefan Metzmacher1-1/+1
metze (This used to be commit d8aeb69ea85cc0df89e213482c446eb8e793bc86)
2007-10-10r4790: added type checking helper macros in talloc. These take advantage ofAndrew Tridgell1-4/+47
the type names that talloc already keeps around for pointers, and allows the user to type check void* private pointers. It can also be used to implement polymorphism in C, as I'm sure someone would have pointed out to me sooner or later :-) (This used to be commit c283e1a3efac3a92e29a35856e20eb61ef4c221e)
2007-10-10r4711: - deprecate talloc_destroy()Andrew Tridgell1-3/+14
- expanded the talloc_realloc() test a little (I was concerned about a possible bug, which turned out to be an illusion) - don't enable gcov by default in Makefile.talloc (This used to be commit 4ec47cc1083c4cdb780e548177631c5914bf677a)
2007-10-10r4593: don't use the _p function in the testsuite, as when built standalone ↵Andrew Tridgell1-9/+9
it doesn't use TALLOC_DEPRECATED (This used to be commit 2fe0e2528f14627832942f6404a4b1be4b556c97)
2007-10-10r4592: fixed typo from talloc testsuite fixup for the new syntaxAndrew Tridgell1-1/+1
(This used to be commit 1177200dd9392c088f5b009f55390ad31c367e5f)
2007-10-10r4591: - converted the other _p talloc functions to not need _pAndrew Tridgell1-10/+10
- added #if TALLOC_DEPRECATED around the _p functions - fixes the code that broke from the above while doing this I fixed quite a number of places that were incorrectly using the non type-safe talloc functions to use the type safe ones. Some were even doing multiplies for array allocation, which is potentially unsafe. (This used to be commit 6e7754abd0c225527fb38363996a6e241b87b37e)
2007-10-10r4550: talloc() is now typesafe. It is exactly equivalent to the old ↵Andrew Tridgell1-2/+2
talloc_p() macro. Use talloc_size() if you want the old behaviour. I have kept talloc_p() as an alias for now. Once we change all calls to be plain talloc() then we can remove it. (This used to be commit 2011bbeb841fd6bfccf3d44a49f79203f7f55baa)
2007-10-10r4549: got rid of a lot more uses of plain talloc(), instead usingAndrew Tridgell1-9/+9
talloc_size() or talloc_array_p() where appropriate. also fixed a memory leak in pvfs_copy_file() (failed to free a memory context) (This used to be commit 89b74b53546e1570b11b3702f40bee58aed8c503)
2007-10-10r4547: - added talloc_new(ctx) macro that is a neater form of the common ↵Andrew Tridgell1-2/+2
talloc(ctx, 0) call. - cleaned up some talloc usage in various files I'd like to get to the point that we have no calls to talloc(), at which point we will rename talloc_p() to talloc(), to encourage everyone to use the typesafe functions. (This used to be commit e6c81d7c9f8a6938947d3c1c8a971a0d6d50b67a)
2007-10-10r4473: - moved talloc into its own lib/talloc/ areaAndrew Tridgell1-0/+785
- added gcov flags to Makefile.talloc - expanded talloc testsuite to add a test for realloc with a child ptr - fixed a bug in talloc_realloc() with realloc of a ptr that has child ptrs (This used to be commit 98b5f73c1ba34d7576c5995069b485c1c5ede324)