Showing with 9 additions and 4 deletions.
  1. +9 −4 test/runner.c
@@ -255,10 +255,17 @@ int run_test(const char* test,
FATAL("process_wait failed");
}

if (tap_output) {
if (status == 0)
LOGF("ok %d - %s\n", test_count, test);
else
LOGF("not ok %d - %s\n", test_count, test);
}

/* Show error and output from processes if the test failed. */
if (status != 0 || task->show_output) {
if (tap_output && status != 0) {
LOGF("not ok %d - %s\n#", test_count, test);
if (tap_output) {
LOGF("#");
} else if (status != 0) {
LOGF("\n`%s` failed: %s\n", test, errmsg);
} else {
@@ -305,8 +312,6 @@ int run_test(const char* test,
}
break;
}
} else if (tap_output) {
LOGF("ok %d - %s\n", test_count, test);
}

/* Clean up all process handles. */