diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-04-02 18:50:47 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-04-02 18:50:47 +0200 |
commit | 0f65733b0855ff9ea838c7d06efdf544e039e05e (patch) | |
tree | 2e596f7ae1c8454e2760893490e92a7824171ed0 /tests/clar/print.h | |
parent | ada157b2375bea8ed0c7a71320a3325a9903ebd7 (diff) | |
download | libgit2-0f65733b0855ff9ea838c7d06efdf544e039e05e.tar.gz |
Clar: skip testsvmg/clar-skip-test
Diffstat (limited to 'tests/clar/print.h')
-rw-r--r-- | tests/clar/print.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/clar/print.h b/tests/clar/print.h index 368016f2f..6529b6b4c 100644 --- a/tests/clar/print.h +++ b/tests/clar/print.h @@ -35,11 +35,17 @@ static void clar_print_error(int num, const struct clar_error *error) fflush(stdout); } -static void clar_print_ontest(const char *test_name, int test_number, int failed) +static void clar_print_ontest(const char *test_name, int test_number, enum cl_test_status status) { (void)test_name; (void)test_number; - printf("%c", failed ? 'F' : '.'); + + switch(status) { + case CL_TEST_OK: printf("."); break; + case CL_TEST_FAILURE: printf("F"); break; + case CL_TEST_SKIP: printf("S"); break; + } + fflush(stdout); } |