Exit code of `./pl --run-tests` is the number of failed tests.

This commit is contained in:
Sage Vaillancourt 2022-03-23 01:02:27 -04:00
parent d743970b1a
commit 6c7132aa46
1 changed files with 1 additions and 2 deletions

View File

@ -771,8 +771,7 @@ int main(int argc, const char* argv[])
setGlobal(&env); setGlobal(&env);
if (argc == 2 && strcmp(argv[1], "--run-tests") == 0) { if (argc == 2 && strcmp(argv[1], "--run-tests") == 0) {
runTests(); return runTests();
return 0;
} }
struct sigaction action; struct sigaction action;