summaryrefslogtreecommitdiff
path: root/lib/tdb2/test/api-tdb1-flag-removal.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-07lib/tdb2: adapt unit tests to SAMBA environment.Rusty Russell1-2/+3
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-11-02tdb2: don't be fascist when TDB_VERSION1 is specified.Rusty Russell1-0/+38
We currently insist that a tdb file be a version1 file if tdb_open() is passed the TDB_VERSION1 flag; we fail if it's actually a tdb2. But that makes generic wrappers harder, and is unlikely to be what the user wants: if they do, they can check tdb_get_flags() & TDB_VERSION1 after opening. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 9691464a16ef22d6acadfef209666381dfe22b2f) Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Wed Nov 2 08:38:38 CET 2011 on sn-devel-104