Skip to content

Commit

Permalink
Fix Issue 16962 - rdmd --build-only --force -c main.d fails: ./main: …
Browse files Browse the repository at this point in the history
…No such file or directory

The actual fix was done by the revert. This simply adds a test.
  • Loading branch information
CyberShadow committed Dec 17, 2016
1 parent e245e29 commit b6ec807
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rdmd_test.d
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,17 @@ void runTests()
assert(res.status == 0, res.output);
assert(exists(libName));
}

/* rdmd --build-only --force -c main.d fails: ./main: No such file or directory: https://issues.dlang.org/show_bug.cgi?id=16962 */

TmpDir srcDir = "rdmdTest";
string srcName = srcDir.buildPath("test.d");
std.file.write(srcName, `void main() {}`);
string objName = srcDir.buildPath("test" ~ objExt);

res = execute([rdmdApp, compilerSwitch, "--build-only", "--force", "-c", "-of" ~ objName, srcName]);
assert(res.status == 0, res.output);
assert(exists(objName));
}

void runConcurrencyTest()
Expand Down

0 comments on commit b6ec807

Please sign in to comment.