From d549829c8820069328c830fcf01e54d070aea30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 24 Aug 2019 10:19:29 +0200 Subject: [PATCH] Fix process test. --- tests/vibe.core.process.d | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/vibe.core.process.d b/tests/vibe.core.process.d index a773b0c..be1bf10 100644 --- a/tests/vibe.core.process.d +++ b/tests/vibe.core.process.d @@ -18,8 +18,6 @@ void testEcho() foreach (i; 0..100) { auto procPipes = pipeProcess(["echo", "foo bar"], Redirect.stdout); - assert(!procPipes.process.exited); - auto output = procPipes.stdout.collectOutput(); assert(procPipes.process.wait() == 0); @@ -146,7 +144,7 @@ void testIgnoreSigterm() assert(!procPipes.process.exited); - assert(procPipes.process.waitOrForceKill(2.seconds) == 9); + assert(procPipes.process.waitOrForceKill(2.seconds) == -9); assert(procPipes.process.exited);