Browse Source

Handle case that test is run on Windows.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@803726 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 16 years ago
parent
commit
b9e04be315
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java

+ 2
- 1
src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java View File

@@ -20,6 +20,7 @@ package org.apache.tools.ant;

import java.io.PrintWriter;
import junit.framework.TestCase;
import org.apache.tools.ant.util.StringUtils;

public class DefaultLoggerTest extends TestCase {

@@ -30,7 +31,7 @@ public class DefaultLoggerTest extends TestCase {
private static String msg(Throwable error, boolean verbose) {
StringBuffer m = new StringBuffer();
DefaultLogger.throwableMessage(m, error, verbose);
return m.toString();
return m.toString().replace(StringUtils.LINE_SEP.charAt(0), '\n');
}

public void testThrowableMessage() throws Exception { // #43398


Loading…
Cancel
Save