summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/run-tdb_foreach.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-07lib/tdb2: adapt unit tests to SAMBA environment.Rusty Russell1-1/+1
This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-09-14tdb2: make tests include a single mega-header to simplify future patchesRusty Russell1-8/+1
This lets us add the new files to a single place. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 476567430be6962625bf399192e20938985232c7)
2011-09-14tdb2: tdb_foreach()Rusty Russell1-0/+93
Create an iterator over every open tdb (not internal TDBs). This is useful for re-establishing the tdb1-style active lock for CLEAR_IF_FIRST. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 1a0c636bc38213bd0322db47529f78f2dc22ffdd)