You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2018/09/10 00:37:07 UTC

[maven-surefire] 04/06: wrong implementation for EOL in lineBoundSymbolWidth()

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch BUILDFIX
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit b791068cb85d1b54326a4290be5b292c9bba39cf
Author: Tibor17 <ti...@apache.org>
AuthorDate: Mon Sep 10 02:03:27 2018 +0200

    wrong implementation for EOL in lineBoundSymbolWidth()
---
 .../org/apache/maven/plugin/surefire/report/TestSetRunListener.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java
index 59d36f2..9d3c974 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/TestSetRunListener.java
@@ -301,7 +301,7 @@ public class TestSetRunListener
 
     private static int lineBoundSymbolWidth( String message )
     {
-        return message.endsWith( "\n" ) || message.endsWith( "\r" ) ? 1 : ( message.endsWith( "\r\n" ) ? 2 : 0 );
+        return message.endsWith( "\r\n" ) ? 2 : ( message.endsWith( "\n" ) || message.endsWith( "\r" ) ? 1 : 0 );
     }
 
     private static Utf8RecodingDeferredFileOutputStream initDeferred( String channel )