X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftap%2Ftap.h;h=2c309740f9286e8d6d72c514f656ff799025524a;hp=395d245d284a55dab9b8df064d9d58dddda8d363;hb=1dcd3ad51bbeb4ba8048b08d62278df8e428031a;hpb=1c005e1223d2f8f664ce4b3be6cd7eb4dd449844 diff --git a/ccan/tap/tap.h b/ccan/tap/tap.h index 395d245d..2c309740 100644 --- a/ccan/tap/tap.h +++ b/ccan/tap/tap.h @@ -195,7 +195,7 @@ void todo_end(void); /** * exit_status - the value that main should return. * - * For maximum compatability your test program should return a particular exit + * For maximum compatibility your test program should return a particular exit * code (ie. 0 if all tests were run, and every test which was expected to * succeed succeeded). * @@ -243,4 +243,11 @@ void plan_no_plan(void); */ void plan_skip_all(const char *reason); +/** + * tap_fail_callback - function to call when we fail + * + * This can be used to ease debugging, or exit on the first failure. + */ +void (*tap_fail_callback)(void); + #endif /* C99 or gcc */