shithub: mc

Download patch

ref: f75f5261a8eed99784bab6274d31dbd00d6d3f76
parent: 0daad047dcbfae0c6650dada4195efecbbe2b883
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Aug 29 06:42:45 EDT 2015

Add current directory to the search path for tests

    'use foo' should get the one we just built for testing,
    not the installed one.

--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -86,7 +86,7 @@
 				.inputs = [path][:],
 				.install = false,
 				.libdeps = std.sldup(targ.libdeps),
-				.incpath = std.sldup(targ.incpath),
+				.incpath = std.slput(std.sldup(targ.incpath), 0, "."),
 			]
 
 			cleantest(b, path)
@@ -106,7 +106,6 @@
 		std.slfree(t)
 	;;
 	std.slfree(tests)
-	std.put("test {}: {}\n", targ.name, ok)
 	-> ok
 }