summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/testsuite.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r25175: Change to talloc_asprintf_append_buffer().Jeremy Allison1-4/+4
Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4)
2007-10-10r24688: Make output subunit-parseable.Jelmer Vernooij1-20/+20
(This used to be commit 2585c6feb22b4409a635017875a2e93fe7c436ba)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell1-2/+1
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10r23795: more v2->v3 conversionAndrew Tridgell1-1/+1
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10r22757: test if calling talloc_free() works on parent elements from within a ↵Stefan Metzmacher1-1/+41
destrutor metze (This used to be commit 305117fae0b4692b27b9cc7204fc59fb1312eabb)
2007-10-10r22365: prepare merge to samba3Stefan Metzmacher1-2/+2
metze (This used to be commit 6780c234275b29192c49bf6d45204b0ac458faaf)
2007-10-10r20650: revert a bunch of code I didn't mean to commit yetAndrew Tridgell1-34/+0
(This used to be commit b3e2d4908781781a487eaeb683d22eb967e5597d)
2007-10-10r20647: add cluster codeAndrew Tridgell1-0/+34
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
2007-10-10r19498: the autofree test cannot be run as part of smbtortureAndrew Tridgell1-0/+3
(This used to be commit ebf1d523da45fe19757bca45262f7514702ee108)
2007-10-10r19495: Stop linking binaries twice (once before installation, once during ↵Jelmer Vernooij1-1/+10
build). Make TORTURE-TALLOC and TORTURE-REPLACE builtin again rather than separate binaries. (This used to be commit 8913d60c72a67b041b08d569c9bd048953106c85)
2007-10-10r19434: we need to force line buffering as the new torture code doesn't createAndrew Tridgell1-0/+2
a pty in the piped_child() code Jelmer, if you want to fix this on platforms that support it, see the forkpty() call, or see http://junkcode.samba.org/ftp/unpacked/junkcode/rline/ (This used to be commit 35908a29922b93d133b19881dc8205a7116cae8e)
2007-10-10r19405: the talloc speed test suite was not giving an accurate picture of theAndrew Tridgell1-13/+18
cost of talloc versus malloc. The size parameter in the test suite was constantly increasing, leading to a worst case for malloc. It is far more common to have talloc calls of 100 bytes or lower, so change the benchmark to reflect this. This makes talloc look much worse - on my laptop I now get: talloc: 5615164 ops/sec malloc: 14337130 ops/sec I'm working on improving that. (This used to be commit db273ef4dd6ab58da57bb4b59fb1fd5568585ed8)
2007-10-10r19381: Print out the specific tests that failed after a smbtorture run.Jelmer Vernooij1-188/+189
Support listing known failures as a list of wildcards in the file `KNOWN_FAILURES'. (This used to be commit 23f66efd564d1ad549fc0cd60348f54808f5cafa)
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)