mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Try a different syntax for echo
This commit is contained in:
parent
986b8202ec
commit
88568f7ffe
1 changed files with 2 additions and 2 deletions
|
@ -3137,13 +3137,13 @@ unittest
|
|||
{
|
||||
stderr.open(tmpname, "w");
|
||||
scope(exit) stderr = t;
|
||||
r = executeShell("echo D rox. 1>&2", null, Config.stderrPassThrough);
|
||||
r = executeShell("echo D rox>&2", null, Config.stderrPassThrough);
|
||||
}
|
||||
assert(r.status == 0);
|
||||
assert(r.output.empty);
|
||||
auto witness = readText(tmpname);
|
||||
import std.ascii : newline;
|
||||
assert(witness == "D rox." ~ newline, "'" ~ witness ~ "'");
|
||||
assert(witness == "D rox" ~ newline, "'" ~ witness ~ "'");
|
||||
}
|
||||
|
||||
@safe unittest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue