This is an automated email from the ASF dual-hosted git repository. tibordigana pushed a commit to branch maven2surefire-jvm-communication in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
commit e063963c7a316d74d28084c7522f6fea3a0ef93c Author: tibordigana <tibordig...@apache.org> AuthorDate: Fri Apr 3 23:09:05 2020 +0200 sendExitError --- .../src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java index 1983ae2..8b24d90 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java @@ -402,7 +402,7 @@ public final class ForkedBooter launchLastDitchDaemonShutdownThread( 0 ); long timeoutMillis = max( systemExitTimeoutInSeconds * ONE_SECOND_IN_MILLIS, ONE_SECOND_IN_MILLIS ); boolean timeoutElapsed = !acquireOnePermit( exitBarrier, timeoutMillis ); - if ( timeoutElapsed ) + if ( timeoutElapsed && !eventChannel.checkError() ) { eventChannel.sendExitError( null, false ); }