summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-10-26 01:13:12 -0700
committerOri Bernstein <ori@eigenstate.org>2016-10-26 01:13:12 -0700
commita23019f08b895626d073258d5d20fa3479d73731 (patch)
tree681fc41fe4d0efabea78a442ba4eba614b7bbde2 /mbld
parent52ec5d6f05690494ee1a43452a0305ea697f0165 (diff)
downloadmc-a23019f08b895626d073258d5d20fa3479d73731.tar.gz
Fix benchmark programs.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/test.myr8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbld/test.myr b/mbld/test.myr
index dddfa31..62e23d2 100644
--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -71,7 +71,6 @@ const test = {b
freecmd(bin)
std.slfree(dir)
;;
- std.slfree(tests)
if tests.len == 0
-> true
;;
@@ -80,16 +79,17 @@ const test = {b
for f in failed
std.slfree(f)
;;
- std.slfree(failed)
if ok
std.put("TESTS PASSED\n")
else
- std.put("TESTS FAILED\n")
+ std.put("TESTS FAILED ({}/P{\n")
;;
+ std.slfree(failed)
+ std.slfree(tests)
-> ok
}
-const printfailed : (f : byte[:][:] -> void) = {failed
+const printfailed = {failed
if failed.len > 10
std.put("\t{} tests failed\n", failed.len)
elif failed.len > 0