]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.h
ccanlint: timeout, and implement -t option for quicker tests.
[ccan] / tools / ccanlint / ccanlint.h
index cf277393d8c05db444c1733bfd5add2a728d4d4f..2ddbf37ae89b199819ead3a62fa6d34cf91aa0e0 100644 (file)
@@ -52,8 +52,9 @@ struct ccanlint {
        /* Can we run this test?  Return string explaining why, if not. */
        const char *(*can_run)(struct manifest *m);
 
-       /* If this returns non-NULL, it means the check failed. */
-       void *(*check)(struct manifest *m);
+       /* If this returns non-NULL, it means the check failed.
+        * If timeleft is set to 0, means it timed out. */
+       void *(*check)(struct manifest *m, unsigned int *timeleft);
 
        /* The non-NULL return from check is passed to one of these: */