summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/testsuite.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r19343: Add support for external scripts/binaries that write results using theJelmer Vernooij1-188/+248
'subunit' protocol. This allows us to easily plug EJS scripts or binaries that can't depend on -ltorture into smbtorture. The protocol is very simple: - write "comments" to stderr Example output on stdout: test: foo success: foo test: bar success: bar test: blah failure: blah [ dummy.c:30: Expression 1 != 2 failed! ] test: blie skip: blie [ Iconv support not built in ] I've already converted the talloc testsuite. (This used to be commit e1742c14a247fabba969f8698108e73997d3f420)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-304/+195
output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10r19118: get rid of a bunch of bool misuse warningsAndrew Tridgell1-19/+19
(This used to be commit e620f44643caf93a8bcb203a966c986c14a8dc0e)
2007-10-10r18995: - fix bug 4078Stefan Metzmacher1-6/+25
- talloc_free(talloc_autofree_context()); should not result in a SIGABORT on exit - add a test for this, but this test can also pass in the standalone build and samba3, as samba4 uses talloc_autofree_context() metze (This used to be commit 2be48c1b033dceb9517826054b8ea97df2c94472)
2007-10-10r18439: 2nd try at a talloc_move() api. This type with the ** ptr interfaceAndrew Tridgell1-2/+2
exposed. Unfortunately this generates a large number of type punning warnings. We'll have to find some magic to hide those. (This used to be commit 254cbf09dee5a1e20c47e47a298f1a8d172b41b9)
2007-10-10r18435: added a function talloc_move() which is like talloc_steal(), but isAndrew Tridgell1-0/+35
meant for moving pointers between structures. The difference is that talloc_move() will zero the source pointer, thus ensuring you don't reference the pointer in the old context. talloc_move() is appropriate in some, but not all cases where we use talloc_steal() now. The interface came out of a discussion with Jeremy. (This used to be commit 200756017e1867faa207703eddc00a75ae4527df)
2007-10-10r18163: Remove defines for BOOL, False and TrueJelmer Vernooij1-82/+72
(This used to be commit 6f5e7df6f2cf67731e596b1d1d6fafbb76123e89)
2007-10-10r18129: moved the system includes into libreplace - this gives much moreAndrew Tridgell1-12/+2
isolation of our portability environment from the main code, and also simplifies the includes system (no separate #ifdef _SAMBA_BUILD for tdb. ldb etc now) (This used to be commit 77d1a468e06290aba789e2f3affc769fc5159a21)
2007-10-10r18096: try to make tcc happy and don't the same struct names in a global andStefan Metzmacher1-11/+7
a local scope metze (This used to be commit b787259365eb3dbbc5e8a82a95f0beeea0015682)
2007-10-10r18064: merge from samba3Stefan Metzmacher1-6/+9
metze (This used to be commit c60deff667941e462fd9c8a894a723c792fe465e)
2007-10-10r18027: Fix some 64-bit warningsVolker Lendecke1-9/+18
(This used to be commit cd495d89314a653b5976b1690e075fd7bac2f59b)
2007-10-10r17958: as talloc_init() enabled null tracking, we should avoid to use itStefan Metzmacher1-0/+2
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)
2007-10-10r17952: merge changes from samba3Stefan Metzmacher1-1/+5
metze (This used to be commit ff8d044c2e14e81b4bb32eaacc56875e9602ce4d)
2007-10-10r17905: fix c++ warningsStefan Metzmacher1-13/+13
metze (This used to be commit 972a84f220f0dabc4e1cc3ffd40a4bf4dedc74d9)
2007-10-10r17886: add talloc_ptrtype() and talloc_array_ptrtype(),Stefan Metzmacher1-0/+76
see the manpage what they do:-) metze (This used to be commit bfca83c91e47e9017474809cd7bc8b2e6e20416a)
2007-10-10r17883: check if talloc_asprintf() works correctStefan Metzmacher1-0/+4
metze (This used to be commit bb79542edbb290c7dbea7c921b0e911dd1b3366b)
2007-10-10r17712: fix compiler warningStefan Metzmacher1-1/+6
metze (This used to be commit 669d1e5f923a5414b8ad2537da1723d50a240387)
2007-10-10r17413: add a new case for the this:Stefan Metzmacher1-0/+41
top->level1->level2->level3 level3 has a deny destructor talloc_free(level1) result: top->level3 metze (This used to be commit 3be930b81d2caf5e13105efa02280c4fc45181cb)
2007-10-10r17061: - remove the currect talloc chunk from it's parent before freeing ↵Stefan Metzmacher1-2/+1
the children this fixes an endless loop bug! - reenable the test for this should I merge this to samba3? metze (This used to be commit 0559222b62930765519aaab5d33609ece29014d6)
2007-10-10r16447: print the result of talloc_set_parent()Stefan Metzmacher1-3/+4
trying to find the bug on HPUX metze (This used to be commit 3db6bd87158cd615a3e35009598863758099595b)
2007-10-10r16445: print out valuesStefan Metzmacher1-2/+4
metze (This used to be commit 972634b2021e60b27d68b0fd6d49ef95398d92e2)
2007-10-10r16442: if we want to use CHECK_SIZE(NULL, 3)Stefan Metzmacher1-0/+2
we need null tracking, so enable it explicit before running any tests metze (This used to be commit f3cd971ab70c3edee4da87b8ca38ec215c8bff49)
2007-10-10r15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()Andrew Tridgell1-1/+1
type safe. This only works on recent gcc versions. With other compilers it reverts to a non-typesafe cast The patch also ensures that talloc_free() does not change error on systems where free() can change errno (This used to be commit babbff5f777642f559747f6d0697bc7c3a5e798d)
2007-10-10r15824: fixed a subtle talloc bug to do with memory context loops. When youAndrew Tridgell1-1/+45
have a structure that references one of its parents, and a parent of that parent is freed, then the whole structure should be freed, not just the reference. this was found by the change notify code, as a side effect of fixing the memory leak yesterday (This used to be commit 70531dcaeeb9314d410baa0d285df6a265311541)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-3/+5
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
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)