You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2021/12/27 16:51:08 UTC

[GitHub] [maven-surefire] slawekjaranowski commented on a change in pull request #391: [SUREFIRE-1946] At ForkStarter.fork, treat the case forkClient.isErro…

slawekjaranowski commented on a change in pull request #391:
URL: https://github.com/apache/maven-surefire/pull/391#discussion_r775575790



##########
File path: maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
##########
@@ -653,6 +653,12 @@ private RunResult fork( Object testSet, PropertiesWrapper providerProperties, Fo
             {
                 runResult = timeout( reporter.getGlobalRunStatistics().getRunResult() );
             }
+            else if ( forkClient.isErrorInFork() )
+            {
+                final StackTraceWriter stackTrace = forkClient.getErrorInFork();
+                booterForkException =
+                    new SurefireBooterForkException( stackTrace.writeTraceToString() );
+            }

Review comment:
       Please look line 711 - 733
   StackTrace is printed if Maven command is started with -e option




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org