mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
std.process: Fix unittest_burnin compilation
This commit is contained in:
parent
8c2b3d18fa
commit
298bb286e6
1 changed files with 5 additions and 0 deletions
|
@ -3999,6 +3999,11 @@ version (unittest_burnin)
|
||||||
// Then, test this module with:
|
// Then, test this module with:
|
||||||
// rdmd --main -unittest -version=unittest_burnin process.d
|
// rdmd --main -unittest -version=unittest_burnin process.d
|
||||||
|
|
||||||
|
import std.file : readText, remove;
|
||||||
|
import std.format : format;
|
||||||
|
import std.path : absolutePath;
|
||||||
|
import std.random : uniform;
|
||||||
|
|
||||||
auto helper = absolutePath("std_process_unittest_helper");
|
auto helper = absolutePath("std_process_unittest_helper");
|
||||||
assert(executeShell(helper ~ " hello").output.split("\0")[1..$] == ["hello"], "Helper malfunction");
|
assert(executeShell(helper ~ " hello").output.split("\0")[1..$] == ["hello"], "Helper malfunction");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue