X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ftest%2Frun-locking.c;h=da0ee70facf9a5d0fc188b677246601762fc80a4;hp=6ebcd6ea504017b6de1374ed40020545c02077d5;hb=67bbee5311280dbbf30debe7122d8722c710e3c3;hpb=c9f915e02c760caffe75da7f9a6a9a1de1bf1747 diff --git a/ccan/failtest/test/run-locking.c b/ccan/failtest/test/run-locking.c index 6ebcd6ea..da0ee70f 100644 --- a/ccan/failtest/test/run-locking.c +++ b/ccan/failtest/test/run-locking.c @@ -1,17 +1,16 @@ +/* Include the C files directly. */ +#include #include #include #include #include #include #include -/* Include the C files directly. */ -#include #define SIZE 8 /* We don't want to fork and fail; we're just testing lock recording. */ -static enum failtest_result dont_fail(struct failtest_call *history, - unsigned num) +static enum failtest_result dont_fail(struct tlist_calls *history) { return FAIL_DONT_FAIL; } @@ -96,6 +95,7 @@ int main(void) unsigned int isize; plan_tests(5835); + failtest_init(0, NULL); failtest_hook = dont_fail; fd = open("run-locking-scratch", O_RDWR|O_CREAT, 0600);