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

regression with surefire 2.12 plugin and SecurityManager

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.12
    • 2.12.1
    • Maven Surefire Plugin
    • None

    Description

      We are running all our tests using a special security manager that restricts IO in tests. There is a regression when running these tests with the 2.12 plugin compared to the 2.11 plugin:

      How to reproduce:

      1) git clone git@github.com:NessComputing/components-ness-pg.git
      2) mvn clean compile test-compile
      3) Run the tests with the 2.11 plugin:

      mvn -Dtest=TestPostgresUtils org.apache.maven.plugins:maven-surefire-plugin:2.11:test
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building ness-pg 2.0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-surefire-plugin:2.11:test (default-cli) @ ness-pg —
      [INFO] Surefire report directory: /home/scratch/components-ness-pg/target/surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running com.nesscomputing.db.TestPostgresUtils
      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec
      2012-02-14 15:15:06,823 INFO main com.nesscomputing.testing.lessio.LessIOSecurityManager org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:77): exit(0)

      Results :

      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------

      4) Run the tests with the 2.12 plugin:

      mvn -Dtest=TestPostgresUtils org.apache.maven.plugins:maven-surefire-plugin:2.12:test
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building ness-pg 2.0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-surefire-plugin:2.12:test (default-cli) @ ness-pg —
      [INFO] Surefire report directory: /home/scratch/components-ness-pg/target/surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running com.nesscomputing.db.TestPostgresUtils
      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.092 sec
      Z,0,BYE!
      2012-02-14 15:15:32,233 INFO main com.nesscomputing.testing.lessio.LessIOSecurityManager org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:79): exit(0)

      Results :

      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.334s
      [INFO] Finished at: Tue Feb 14 15:15:32 PST 2012
      [INFO] Final Memory: 5M/181M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-cli) on project ness-pg: Execution default-cli of goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

      Note the regression.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            krosenvold Kristian Rosenvold
            henning Henning Schmiedehausen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment