ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r803726 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java
Date Wed, 12 Aug 2009 22:20:15 GMT
Author: jglick
Date: Wed Aug 12 22:20:12 2009
New Revision: 803726

URL: http://svn.apache.org/viewvc?rev=803726&view=rev
Log:
Handle case that test is run on Windows.

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java?rev=803726&r1=803725&r2=803726&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/DefaultLoggerTest.java Wed Aug 12
22:20:12 2009
@@ -20,6 +20,7 @@
 
 import java.io.PrintWriter;
 import junit.framework.TestCase;
+import org.apache.tools.ant.util.StringUtils;
 
 public class DefaultLoggerTest extends TestCase {
 
@@ -30,7 +31,7 @@
     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



Mime
View raw message