diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c index 2581a58..df802c2 100644 --- a/tests/main.c +++ b/tests/main.c @@ -14,6 +14,7 @@ double diff_time(struct timespec a, struct timespec b) { int main() { int i = 0; + int return_type = 0; while (i < total_test_count) { char padded_testname[max_test_name_size + 2]; int j = 0; @@ -34,6 +35,8 @@ int main() { bool result = tests[i](); clock_gettime(CLOCK_MONOTONIC, &end); + return_type |= !result; + printf( " %s %.2lfs\n", result ? "\x1b[32mP\x1b[0m" : "\x1b[31mF\x1b[0m", @@ -41,4 +44,6 @@ int main() { ); i++; } + + return return_type; } |
