[ https://jira.codehaus.org/browse/SUREFIRE-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291515#comment-291515 ]
François LEIBER edited comment on SUREFIRE-827 at 2/13/12 10:10 AM: -------------------------------------------------------------------- We also have a big issue with surefire 2.12 (using default configuration, which means forkMode=once): the Junit tests of the first module pass perfectly, then we have a "Z,0,BYE!" in the log and the surefire plugin fails with: {code} The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.close(ForkClient.java:244) {code} If I check maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java, I see the following lines: {code} runSuitesInProcess( testSet, testClassLoader, startupConfiguration, providerConfiguration ); // Say bye. System.out.println("Z,0,BYE!"); System.out.flush(); // noinspection CallToSystemExit System.exit( 0 ); {code} Why is surefire surprised someone called System.exit() if he's the one who did it? was (Author: fleiber): We also have a big issue with surefire 2.12 (using default configuration, which means forkMode=once): the Junit tests of the first module pass perfectly, then we have a "Z,0,BYE!" in the log and the surefire plugin fails with: {code} The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.close(ForkClient.java:244) {code} If I check maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java, I see the following lines: {code} runSuitesInProcess( testSet, testClassLoader, startupConfiguration, providerConfiguration ); // Say bye. System.out.println("Z,0,BYE!"); System.out.flush(); // noinspection CallToSystemExit System.exit( 0 ); {code} Why is surefire someone called System.exit() if it's the one which did it? > Surefire 2.12 cannot run a single test, regression from 2.11 > ------------------------------------------------------------ > > Key: SUREFIRE-827 > URL: https://jira.codehaus.org/browse/SUREFIRE-827 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin > Affects Versions: 2.12 > Environment: Ubuntu 11.10 > Reporter: Andrew Gaul > > # Surefire 2.11 > $ mvn test -Dtest=DataTest#testDataServerGetNonExistentFile > ... > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 > # Surefire 2.12 > mvn test -Dtest=DataTest#testDataServerGetNonExistentFile > ... > Tests run: 9, Failures: 0, Errors: 0, Skipped: 0 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira