]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/test/run-locking.c
failtest: fix open in tests.
[ccan] / ccan / failtest / test / run-locking.c
index 6ebcd6ea504017b6de1374ed40020545c02077d5..13fe0b97b3778d9ccc24df11b739b4f2373cab52 100644 (file)
@@ -10,8 +10,7 @@
 #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);