Skip to content

Commit

Permalink
Merge pull request #116 from AndrejMitrovic/Test12149
Browse files Browse the repository at this point in the history
Add test-case for Issue 12149 - RDMD -of switch doesn't append .exe to an executable on Windows.
  • Loading branch information
MartinNowak committed Feb 13, 2014
2 parents 24823d0 + 99d3901 commit a4294fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rdmd_test.d
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@ void runTests()
res = execute([rdmdApp, compilerSwitch, crashSrc]);
assert(res.status == -SIGSEGV, format("%s", res));
}

version (Windows)
{
/* -of doesn't append .exe on Windows: https://d.puremagic.com/issues/show_bug.cgi?id=12149 */
string outPath = tempDir().buildPath("test_of_app");
string exePath = outPath ~ ".exe";
res = execute([rdmdApp, "--build-only", "-of" ~ outPath, voidMain]);
enforce(exePath.exists(), exePath);
}
}

void runConcurrencyTest()
Expand Down

0 comments on commit a4294fa

Please sign in to comment.