ntdb: test arbitrary operations during ntdb_parse_record().
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 22 Jun 2012 00:14:41 +0000 (09:44 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 22 Jun 2012 05:35:17 +0000 (07:35 +0200)
commit4c51ee1116c983ceef3804d79954aafad1b935ad
tree05e4806dcf3310315b489ff15e937c6e3f9ad7a5
parent01ec4a72de56ade54bbbc92e0a408771390c5c12
ntdb: test arbitrary operations during ntdb_parse_record().

In particular, this tests that we can store enough records to make the
database expand while we map the given record.  We use a global lock for
this, but it could happen in theory with another process.

It also tests the that we can recurse inside ntdb_parse_record().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ntdb/test/api-94-expand-during-parse.c [new file with mode: 0644]
lib/ntdb/wscript