Browse Source

Make ParallelTest work on Windows

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271536 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 23 years ago
parent
commit
7efcedb77b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java

+ 2
- 2
src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java View File

@@ -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);


Loading…
Cancel
Save