about summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorArun Isaac2025-12-17 20:18:57 +0000
committerArun Isaac2025-12-17 20:18:57 +0000
commitde5429b3615e95a7a27c03168a763f36b4d638ce (patch)
treeceaa3eb6b433e264787574f6d6daa483ff0213e4 /bin
parent2759104f33d18c43260db6249e5d8eb20e145f7d (diff)
downloadrun64-de5429b3615e95a7a27c03168a763f36b4d638ce.tar.gz
run64-de5429b3615e95a7a27c03168a763f36b4d638ce.tar.lz
run64-de5429b3615e95a7a27c03168a763f36b4d638ce.zip
Do not print anything if expected error is #t.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/run6422
1 files changed, 13 insertions, 9 deletions
diff --git a/bin/run64 b/bin/run64
index 3c98ec0..e90dfd2 100755
--- a/bin/run64
+++ b/bin/run64
@@ -284,16 +284,20 @@ object instead of the list element."
                     (case test-type
                       ;; On test-assert, print nothing additional.
                       ((assert) #t)
-                      ;; On test-error, print the mismatch in expected
-                      ;; and actual errors.
+                      ;; On test-error, if the expected error is not #t, print
+                      ;; the mismatch in expected and actual errors. An expected
+                      ;; error of #t is a special case that signifies "some kind
+                      ;; of unspecified error".
                       ((error)
-                       (newline)
-                       (display (red "Actual error: "))
-                       (write (assq-ref failure 'actual-error))
-                       (newline)
-                       (display (red "Expected error: "))
-                       (write (assq-ref failure 'expected-error))
-                       (newline))
+                       (unless (eq? (assq-ref failure 'expected-error)
+                                    #t)
+                         (newline)
+                         (display (red "Actual error: "))
+                         (write (assq-ref failure 'actual-error))
+                         (newline)
+                         (display (red "Expected error: "))
+                         (write (assq-ref failure 'expected-error))
+                         (newline)))
                       ((eq eqv equal approximate)
                        (cond
                         ;; If an error occurred, report it.