File src/stic.c changed (mode: 100644) (index 18e209f..2433c83) |
... |
... |
void stic_test_fixture_start(const char filepath[]) |
386 |
386 |
|
|
387 |
387 |
void stic_test_fixture_end() |
void stic_test_fixture_end() |
388 |
388 |
{ |
{ |
|
389 |
|
const int nrun = sea_tests_run - stic_fixture_tests_run; |
|
390 |
|
const int nfailed = sea_tests_failed - stic_fixture_tests_failed; |
389 |
391 |
char s[STIC_PRINT_BUFFER_SIZE]; |
char s[STIC_PRINT_BUFFER_SIZE]; |
390 |
|
sprintf(s, "%d run %d failed", sea_tests_run-stic_fixture_tests_run, sea_tests_failed-stic_fixture_tests_failed); |
|
|
392 |
|
|
|
393 |
|
sprintf(s, "%d run %d failed", nrun, nfailed); |
|
394 |
|
|
|
395 |
|
if(nrun != 0 && (nfailed != 0 || stic_verbose)) |
|
396 |
|
{ |
|
397 |
|
printf("\n"); |
|
398 |
|
} |
391 |
399 |
stic_header_printer(s, stic_screen_width, ' '); |
stic_header_printer(s, stic_screen_width, ' '); |
392 |
400 |
printf("\n"); |
printf("\n"); |
393 |
401 |
} |
} |