Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-780

Success claimed when jvm fails to launch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9
    • 2.11
    • Maven Surefire Plugin
    • None

    Description

      $ 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>
      

      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:

      ...
      [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] ------------------------------------------------------------------------
      

      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?

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            jmb236 Joel Barry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: