From 7efcedb77b2104ce469c86c2e49ae0914eb4f719 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Mon, 25 Feb 2002 04:33:25 +0000 Subject: [PATCH] Make ParallelTest work on Windows git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271536 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/DemuxOutputTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java b/src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java index ad4d65fe7..68a7f33ac 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java @@ -88,7 +88,7 @@ public class DemuxOutputTask extends Task { } protected void handleOutput(String line) { - if (!line.equals(randomOutValue)) { + if (line.length() != 0 && !line.equals(randomOutValue)) { String message = "Received = [" + line + "], expected = [" + randomOutValue + "]"; throw new BuildException(message); @@ -97,7 +97,7 @@ public class DemuxOutputTask extends Task { } protected void handleErrorOutput(String line) { - if (!line.equals(randomErrValue)) { + if (line.length() != 0 && !line.equals(randomErrValue)) { String message = "Received = [" + line + "], expected = [" + randomErrValue + "]"; throw new BuildException(message);