X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftap%2Ftap.c;h=106da912487ba28665fc82d9f206e4c639085a34;hp=a5156aa194a748ecdf8822d49fde91ce7a0a257f;hb=c520b4adbbfba5a663b94e71216b90eddd0bf877;hpb=ac0e87d7ecf790c187ce3c5d837b971fdd016b57 diff --git a/ccan/tap/tap.c b/ccan/tap/tap.c index a5156aa1..106da912 100644 --- a/ccan/tap/tap.c +++ b/ccan/tap/tap.c @@ -179,6 +179,9 @@ _gen_result(int ok, const char *func, const char *file, unsigned int line, UNLOCK; + if (!ok && tap_fail_callback) + tap_fail_callback(); + /* We only care (when testing) that ok is positive, but here we specifically only want to return 1 or 0 */ return ok ? 1 : 0; @@ -260,7 +263,7 @@ _tap_init(void) /* stdout needs to be unbuffered so that the output appears in the same place relative to stderr output as it does with Test::Harness */ - setbuf(stdout, 0); +// setbuf(stdout, 0); run_once = 1; } }