failtest: failtest_has_failed()
[ccan] / ccan / failtest / failtest.c
index e9f837364a84b55ed9853a287ab69884b5f92c0a..2471510614a070c6c404e04d51789bbc28a8536e 100644 (file)
@@ -1053,6 +1053,11 @@ void failtest_init(int argc, char *argv[])
        gettimeofday(&start, NULL);
 }
 
+bool failtest_has_failed(void)
+{
+       return control_fd != -1;
+}
+
 void failtest_exit(int status)
 {
        if (failtest_exit_check) {