Fix process test.

This commit is contained in:
Sönke Ludwig 2019-08-24 10:19:29 +02:00
parent 771dc872c2
commit d549829c88

View file

@ -18,8 +18,6 @@ void testEcho()
foreach (i; 0..100) { foreach (i; 0..100) {
auto procPipes = pipeProcess(["echo", "foo bar"], Redirect.stdout); auto procPipes = pipeProcess(["echo", "foo bar"], Redirect.stdout);
assert(!procPipes.process.exited);
auto output = procPipes.stdout.collectOutput(); auto output = procPipes.stdout.collectOutput();
assert(procPipes.process.wait() == 0); assert(procPipes.process.wait() == 0);
@ -146,7 +144,7 @@ void testIgnoreSigterm()
assert(!procPipes.process.exited); assert(!procPipes.process.exited);
assert(procPipes.process.waitOrForceKill(2.seconds) == 9); assert(procPipes.process.waitOrForceKill(2.seconds) == -9);
assert(procPipes.process.exited); assert(procPipes.process.exited);