ref: dbefa9ea41036f4ca1d2e6a0527572c52698a398
parent: 3456a5b71887bb64aa8eac957a287a78b8ce9f28
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Mar 8 21:11:44 EDT 2015
Avoid duplicate dots in test path.
--- a/test.myr
+++ b/test.myr
@@ -37,6 +37,14 @@
;;
;;
for `Test t in p.targs
+ for s in t.incpath
+ if std.sleq(".", s)
+ goto founddot
+ ;;
+ ;;
+ t.incpath = std.slpush(t.incpath, std.sldup("."))
+
+:founddot
buildbin(p, t, false)
bin = std.strcat("./", t.name)
if !runtest(bin)