From 547678f7de41fe69f4c4c2980464d1f66befbba8 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 27 Apr 2021 20:26:39 -0600 Subject: [PATCH] raco test: fix --place mode (non-)rackunit counting When a test run by `--place` mode doesn't increment any rackunit counts, treat the count as 0 instead of 1 for consistency with `--direct` and `--process` modes. Closes #1358 --- pkgs/compiler-lib/compiler/commands/test.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/compiler-lib/compiler/commands/test.rkt b/pkgs/compiler-lib/compiler/commands/test.rkt index 8e4b633579..1746df18f6 100644 --- a/pkgs/compiler-lib/compiler/commands/test.rkt +++ b/pkgs/compiler-lib/compiler/commands/test.rkt @@ -112,7 +112,7 @@ ;; If the test did not use `rackunit`, claim ;; success: (if (zero? (cdr test-results)) - (cons 0 1) + (cons 0 0) test-results)))) ;; Run each test in its own place or process, and collect both test