failtest: generic cleanup hooks
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Feb 2011 12:51:42 +0000 (23:21 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Feb 2011 12:51:42 +0000 (23:21 +1030)
commite8f0484b7808efe03dbb573563b336d533487e29
treea2877564f75dddb31124fd8555d290153dca3358
parent1605358b20327a8d384750cc2f840ed3a2ea224f
failtest: generic cleanup hooks

Each function in the history stores a cleanup function, rather than storing
extra structures.  In particular, we save writes and file offsets using
this.
ccan/failtest/failtest.c
ccan/failtest/failtest.h
ccan/failtest/failtest_override.h
ccan/failtest/failtest_proto.h
ccan/failtest/test/run-history.c
ccan/failtest/test/run-open.c