benchmark: return error when fail

This commit is contained in:
Zihao Yu 2024-02-20 14:47:47 +08:00
parent d41f447c17
commit 2e7c5934ed
3 changed files with 3 additions and 3 deletions

View file

@ -149,7 +149,7 @@ int main(const char *args) {
}
printf("Scored time: %s ms\n", format_time(score_time));
printf("Total time: %s ms\n", format_time(total_time));
return 0;
return (pass ? 0 : 1);
}
// Libraries