diff --git a/tests/runminitest.d b/tests/runminitest.d index c0772dc2..b899c895 100644 --- a/tests/runminitest.d +++ b/tests/runminitest.d @@ -22,9 +22,15 @@ int main(string[] args) string[] norunfailed; chdir("mini"); - if(!exists("obj")) + + if (!exists("obj")) mkdir("obj"); + foreach(f; listdir("./obj", "*")) + { + std.file.remove(f); + } + static int classify(char[] name) { if (find(name, "compile_") == 0) @@ -42,6 +48,7 @@ int main(string[] args) foreach(c; contents) { auto testname = getName(getBaseName(c)); writefln("TEST NAME: ", testname); + string cmd = format("llvmdc %s -quiet -ofobj/%s -odobj", c, testname); foreach(v; args[1..$]) { cmd ~= ' ';