Skip to content

Commit

Permalink
rdmd_test: Add test for issue 11983
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Feb 2, 2014
1 parent 25f24ff commit 524a76e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rdmd_test.d
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,16 @@ void runTests()
res = execute([rdmdApp, compilerSwitch, "-I" ~ packRoot, "--makedepend", depMod]);
assert(res.output.canFind("depMod_.d : ")); // simplistic check

/* Test signal propagation through exit codes */

version (Posix)
{
import core.sys.posix.signal;
string crashSrc = tempDir().buildPath("crash_src_.d");
std.file.write(crashSrc, `void main() { int *p; *p = 0; }`);
res = execute([rdmdApp, compilerSwitch, crashSrc]);
assert(res.status == -SIGSEGV, format("%s", res));
}
}

void runConcurrencyTest()
Expand Down

0 comments on commit 524a76e

Please sign in to comment.