diff tests/runminitest.d @ 463:ea991021a56a

Use path separator to make minitests work on windows.
author Christian Kamm <kamm incasoftware de>
date Sun, 03 Aug 2008 14:03:15 +0200
parents 94c4e090c1af
children 45a67b6f1310
line wrap: on
line diff
--- a/tests/runminitest.d	Sun Aug 03 12:27:11 2008 +0200
+++ b/tests/runminitest.d	Sun Aug 03 14:03:15 2008 +0200
@@ -49,7 +49,7 @@
         auto testname = getName(getBaseName(c));
         writefln("TEST NAME: ", testname);
 
-        string cmd = format("llvmdc %s -quiet -ofobj/%s -odobj", c, testname);
+        string cmd = format("llvmdc %s -quiet -ofobj" ~ std.path.sep ~ "%s -odobj", c, testname);
         foreach(v; args[1..$]) {
             cmd ~= ' ';
             cmd ~= v;
@@ -61,7 +61,7 @@
                 compilefailed ~= c;
         }
         else if (cl == RUN || cl == NORUN) {
-            if (system("obj/" ~ testname) != 0) {
+            if (system("obj" ~ std.path.sep ~ testname) != 0) {
                 if (cl == RUN)
                     runfailed ~= c;
             }