Success claimed when jvm fails to launch
----------------------------------------
Key: SUREFIRE-780
URL: https://jira.codehaus.org/browse/SUREFIRE-780
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 2.9
Environment: $ uname -a
Linux hpa-linux-joelb 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC
2010 x86_64 GNU/Linux
$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
Reporter: Joel Barry
Priority: Minor
{noformat}
$ svn diff
Index: pom.xml
===================================================================
--- pom.xml (revision 27018)
+++ pom.xml (working copy)
@@ -68,7 +68,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <argLine>-Xmx1G</argLine>
+ <argLine>-Xmx1.5G</argLine>
</configuration>
</plugin>
<plugin>
{noformat}
Before this change, surefire runs but a test runs out of heap space.
The test fails, surefire signals failure, and the mvn build gets BUILD
FAILURE.
After the change:
{noformat}
...
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/home/joelb/views/rse-trunk/common/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Invalid maximum heap size: -Xmx1.5G
Could not create the Java virtual machine.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Fri Oct 21 10:50:54 EDT 2011
[INFO] Final Memory: 77M/680M
[INFO] ------------------------------------------------------------------------
{noformat}
Looks like I needed -Xmx1500m to satisfy this jvm, but shouldn't my
typo provoke surefire to signal failure to maven so that the build
fails?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira