Repository: maven-surefire
Updated Branches:
  refs/heads/SUREFIRE-1380_2 [created] f1f3b6fab


[SUREFIRE-1380] AbstractCommandStream should flush data if another Thread marks 
the stream closed, empty shared buffer.


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/f1f3b6fa
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/f1f3b6fa
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/f1f3b6fa

Branch: refs/heads/SUREFIRE-1380_2
Commit: f1f3b6fab9e6179a9faa7537be49354fa58e7685
Parents: 59c065f
Author: Tibor17 <tibordig...@apache.org>
Authored: Sat Jun 3 13:40:12 2017 +0200
Committer: Tibor17 <tibordig...@apache.org>
Committed: Sat Jun 3 13:40:12 2017 +0200

----------------------------------------------------------------------
 .../booterclient/lazytestprovider/AbstractCommandStream.java        | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/f1f3b6fa/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/AbstractCommandStream.java
----------------------------------------------------------------------
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/AbstractCommandStream.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/AbstractCommandStream.java
index 0bc2036..075d92e 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/AbstractCommandStream.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/AbstractCommandStream.java
@@ -90,6 +90,7 @@ public abstract class AbstractCommandStream
     {
         if ( isClosed() )
         {
+            tryFlush();
             return -1;
         }
 

Reply via email to