# HG changeset patch # User Tomas Lindquist Olsen # Date 1217222713 -7200 # Node ID 94c4e090c1af48a5aa52dfe72ad14bb3b3215270 # Parent d3689b183f45c1c891f7d7ae873a8e7563616451 clean out obj dir before running mini test. diff -r d3689b183f45 -r 94c4e090c1af tests/runminitest.d --- a/tests/runminitest.d Mon Jul 28 03:18:15 2008 +0200 +++ b/tests/runminitest.d Mon Jul 28 07:25:13 2008 +0200 @@ -22,9 +22,15 @@ 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 @@ 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 ~= ' ';