]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/test/run-locking.c
failtest: hook can return FAIL_PROBE
[ccan] / ccan / failtest / test / run-locking.c
index b25cfab9a29b36793359cda9c991f772b6a2c22c..6ebcd6ea504017b6de1374ed40020545c02077d5 100644 (file)
 #define SIZE 8
 
 /* We don't want to fork and fail; we're just testing lock recording. */
-static bool dont_fail(struct failtest_call *history, unsigned num)
+static enum failtest_result dont_fail(struct failtest_call *history,
+                                     unsigned num)
 {
-       return false;
+       return FAIL_DONT_FAIL;
 }
 
 static bool place_lock(int fd, char lockarr[], unsigned pos, unsigned size,