]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/failtest.h
failtest: call failtest_exit_check even in non-failing parent.
[ccan] / ccan / failtest / failtest.h
index e8bf10ab5f6c46e056833610fd8c57b54bb1e3d5..473f9e7950fa498e5d56a613353b049e69c82084 100644 (file)
@@ -69,14 +69,15 @@ struct open_call {
 struct pipe_call {
        int ret;
        int fds[2];
+       bool closed[2];
 };
 
 struct read_call {
        ssize_t ret;
+       off_t off;
        int fd;
        void *buf;
        size_t count;
-       off_t off;
 };
 
 struct write_call {
@@ -121,6 +122,8 @@ struct failtest_call {
        bool fail;
        /* What we set errno to. */
        int error;
+       /* How do we clean this up? */
+       void (*cleanup)(void *u);
        /* The actual call data. */
        union {
                struct calloc_call calloc;