From 6c7132aa46ecf26e789272d0457603ad4548e212 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 23 Mar 2022 01:02:27 -0400 Subject: [PATCH] Exit code of `./pl --run-tests` is the number of failed tests. --- src/pebblisp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pebblisp.c b/src/pebblisp.c index 400acc7..bfea7da 100644 --- a/src/pebblisp.c +++ b/src/pebblisp.c @@ -771,8 +771,7 @@ int main(int argc, const char* argv[]) setGlobal(&env); if (argc == 2 && strcmp(argv[1], "--run-tests") == 0) { - runTests(); - return 0; + return runTests(); } struct sigaction action;