]> gitweb.factorcode.org Git - factor.git/commitdiff
tools.test: better restart checking.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 31 Mar 2016 04:55:07 +0000 (21:55 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 31 Mar 2016 06:29:37 +0000 (23:29 -0700)
basis/tools/test/test.factor

index 21fe7de3a6ded881d2b5e1c3186fb6a78d727763..5722a64ce0296efb3dbf16e9e297a4f097f7db04 100644 (file)
@@ -126,7 +126,11 @@ PRIVATE>
     dup current-test-file [
         test-failures get current-test-file get +test-failure+ delete-file-errors
         '[ _ run-file ] [
-            dup condition? [ rethrow ] [ file-failure ] if
+            dup compute-restarts empty? [
+                file-failure
+            ] [
+                rethrow
+            ] if
         ] recover
     ] with-variable ;