pipecmd: Use closefrom instead of iterating directly.
[ccan] / ccan / failtest / test / run-failpath.c
index 3c93c2ad988e3f1f12b5c590d53caac6b6eecdb9..9795ee9d054f9810b4aecd2c1a1f73bf2689efbb 100644 (file)
@@ -1,9 +1,9 @@
+#include <ccan/failtest/failtest.c>
 #include <stdlib.h>
 #include <setjmp.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <ccan/tap/tap.h>
-#include <ccan/failtest/failtest.c>
 
 int main(void)
 {
@@ -11,6 +11,7 @@ int main(void)
        void *p;
 
        plan_tests(14);
+       failtest_init(0, NULL);
 
        failpath = "mceopwrMCEOPWR";