From: Rusty Russell Date: Fri, 10 Sep 2010 03:20:16 +0000 (+0930) Subject: tdb: test that new-style TDBs with non-default hashes can't be opened. X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=fdf3c148052f30d10e8c72fbdbdaf67d4a51b11e;hp=fdf3c148052f30d10e8c72fbdbdaf67d4a51b11e;p=ccan tdb: test that new-style TDBs with non-default hashes can't be opened. We currently allow opening of a TDB without any idea if we're using the right hash function. Since most people use the default, this hasn't been a big issue. The next change will put an example hash value in the rwlocks field in the header: current TDB already refuses to open a TDB with this field non-zero. This commit simply adds tests that that occurs. ---