projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
failtest: failtest_has_failed()
[ccan]
/
ccan
/
failtest
/
failtest.c
diff --git
a/ccan/failtest/failtest.c
b/ccan/failtest/failtest.c
index e9f837364a84b55ed9853a287ab69884b5f92c0a..2471510614a070c6c404e04d51789bbc28a8536e 100644
(file)
--- a/
ccan/failtest/failtest.c
+++ b/
ccan/failtest/failtest.c
@@
-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) {