Mercurial > projects > ldc
changeset 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 | f7ba5f705d59 |
children | 6989f040ea06 |
files | tests/runminitest.d |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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; }