]> git.ozlabs.org Git - ccan/commit
tdb2: test: try (almost) all tests with TDB_VERSION1 flag.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
commit818ed29730b030ce79855fc35c212b51adff3180
tree2efbd02255b8beb048dc24acf8c239f7fa4ec041
parent670ba98f74b52df541d153eeab9d3310932e75cd
tdb2: test: try (almost) all tests with TDB_VERSION1 flag.

There are some minor changes required, in particular:

1) Make sure lockcheck understands tdb1 allrecord lock upgrades.
2) Handle tdb1 sequence number jumps: various operations increment the
   sequence number twice, especually tdb_append.
3) Don't test fail on unlock, since it gets triggered with traversal on the
   tdb1 backend (we didn't actually ever test this case for tdb2).
4) Move clear_if_first to offset 4, to match tdb1.
33 files changed:
ccan/tdb2/test/external-agent.c
ccan/tdb2/test/lock-tracking.c
ccan/tdb2/test/run-01-new_database.c
ccan/tdb2/test/run-05-readonly-open.c
ccan/tdb2/test/run-10-simple-store.c
ccan/tdb2/test/run-11-simple-fetch.c
ccan/tdb2/test/run-13-delete.c
ccan/tdb2/test/run-14-exists.c
ccan/tdb2/test/run-15-append.c
ccan/tdb2/test/run-16-wipe_all.c
ccan/tdb2/test/run-21-parse_record.c
ccan/tdb2/test/run-35-convert.c
ccan/tdb2/test/run-55-transaction.c
ccan/tdb2/test/run-56-open-during-transaction.c
ccan/tdb2/test/run-57-die-during-transaction.c
ccan/tdb2/test/run-80-tdb_fd.c
ccan/tdb2/test/run-81-seqnum.c
ccan/tdb2/test/run-82-lockattr.c
ccan/tdb2/test/run-83-openhook.c
ccan/tdb2/test/run-90-get-set-attributes.c
ccan/tdb2/test/run-91-get-stats.c
ccan/tdb2/test/run-92-get-set-readonly.c
ccan/tdb2/test/run-add-remove-flags.c
ccan/tdb2/test/run-check-callback.c
ccan/tdb2/test/run-expand-in-transaction.c
ccan/tdb2/test/run-firstkey-nextkey.c
ccan/tdb2/test/run-fork-test.c
ccan/tdb2/test/run-lockall.c
ccan/tdb2/test/run-locktimeout.c
ccan/tdb2/test/run-open-multiple-times.c
ccan/tdb2/test/run-record-expand.c
ccan/tdb2/test/run-simple-delete.c
ccan/tdb2/test/run-summary.c