[ 
https://issues.apache.org/jira/browse/SUREFIRE-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16891723#comment-16891723
 ] 

Tibor Digana commented on SUREFIRE-1675:
----------------------------------------

[~mohsenhariri]
Thx for your reply. We have found real root cause of this bug and we have fixed 
it in 
https://gitbox.apache.org/repos/asf?p=maven-surefire.git;a=commit;h=623205bcde63efc02b5dc305119c87ad08a86276
Currently I am writing additional tests.
Regarding the change of default value for the configuration parameter 
{{shutdown}}, I will open a separate ticket.

> Forked JVM terminates with 'halt' when another module's tests fail
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-1675
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1675
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.22.2, 3.0.0-M2
>            Reporter: Mohsen Hariri
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.0.0-M4
>
>         Attachments: badshutdown.zip
>
>
> *Steps to reproduce:*
> Run the attached project with the following command:
> {noformat}
> mvn test -T2{noformat}
> *Expected outcome:*
> The 'long' modules's test's shutdown hook should be called
>  
> *Actual outcome:*
> The 'long' modules test's shutdown hook is never called
>  
> *Workaround:*
> Use {{shutdown=exit}} configuration as below:
> {noformat}
>                 <plugin>
>                     <artifactId>maven-surefire-plugin</artifactId>
>                     <configuration>
>                         <shutdown>exit</shutdown>
>                     </configuration>
>                 </plugin>
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to