diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-07-26 23:02:20 +0200 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-09-06 11:17:01 +0100 |
commit | bf9fc126709af948c2a324ceb1b2696046c91cfe (patch) | |
tree | 25139e803ff4b5fba543e6528a600c814627da45 /tests/clar | |
parent | 90753a96515f85e2d0e79a16d3a06ba5b363c68e (diff) | |
download | libgit2-bf9fc126709af948c2a324ceb1b2696046c91cfe.tar.gz |
Isolate test reports
This makes it possible to keep track of every test status (even
successful ones), and their errors, if any.
Diffstat (limited to 'tests/clar')
-rw-r--r-- | tests/clar/print.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/clar/print.h b/tests/clar/print.h index 916d807c1..73c4a8953 100644 --- a/tests/clar/print.h +++ b/tests/clar/print.h @@ -13,16 +13,16 @@ static void clar_print_shutdown(int test_count, int suite_count, int error_count (void)error_count; printf("\n\n"); - clar_report_errors(); + clar_report_all(); } -static void clar_print_error(int num, const struct clar_error *error) +static void clar_print_error(int num, const struct clar_report *report, const struct clar_error *error) { printf(" %d) Failure:\n", num); printf("%s::%s [%s:%d]\n", - error->suite, - error->test, + report->suite, + report->test, error->file, error->line_number); @@ -44,6 +44,7 @@ static void clar_print_ontest(const char *test_name, int test_number, enum cl_te case CL_TEST_OK: printf("."); break; case CL_TEST_FAILURE: printf("F"); break; case CL_TEST_SKIP: printf("S"); break; + case CL_TEST_NOTRUN: printf("N"); break; } fflush(stdout); |