Skip to content

Commit

Permalink
Better unittests in process.d
Browse files Browse the repository at this point in the history
  • Loading branch information
andralex committed Dec 23, 2013
1 parent 1e80655 commit 21b3ee3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion std/process.d
Expand Up @@ -3243,7 +3243,11 @@ unittest
//assert(x == "wyda" ~ newline, text(x.length));

import std.exception; // Issue 9444
assertThrown!ErrnoException(shell("qwertyuiop09813478 2>/dev/null"));
version(windows)
string cmd = "98c10ec7e253a11cdff45f807b984a81 2>NUL";
else
string cmd = "98c10ec7e253a11cdff45f807b984a81 2>/dev/null";
assertThrown!ErrnoException(shell(cmd));
}

/**
Expand Down

0 comments on commit 21b3ee3

Please sign in to comment.