You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Tibor17 <gi...@git.apache.org> on 2016/11/28 22:29:37 UTC

[GitHub] maven-surefire pull request #136: [SUREFIRE-1295] Attribute JVM crashes to t...

GitHub user Tibor17 opened a pull request:

    https://github.com/apache/maven-surefire/pull/136

    [SUREFIRE-1295] Attribute JVM crashes to tests

    I have 4 tests ATest.java .. DTest.java, and CTest fails like this:
    
    ```
    @Test
        public void x() {
            Runtime.getRuntime().halt( 0 );
        }
    ```
    Here is the result, see "Crashed tests".
    ```
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.2-SNAPSHOT:test (default-test) on project b: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.2-SNAPSHOT:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
    [ERROR] Command was cmd.exe /X /C ""D:\Program Files\Java\jdk1.8.0_112\jre\bin\java" -jar D:\vcs\zmaz6\target\surefire\surefirebooter8109843199172464014.jar D:\vcs\zmaz6\target\surefire\surefire4550764212193522341tmp D:\vcs\zmaz6\target\surefire\surefire_07316673656092271862tmp"
    [ERROR] Process Exit Code: 0
    [ERROR] Crashed tests:
    [ERROR] pkg.CTest
    [ERROR] -> [Help 1]
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Tibor17/maven-surefire SUREFIRE-1295

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/maven-surefire/pull/136.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #136
    
----
commit 364b0c9e8ae56916f0b9aead2a26f07ed57befca
Author: Tibor17 <ti...@lycos.com>
Date:   2016-11-28T22:16:20Z

    [SUREFIRE-1295] Attribute JVM crashes to tests

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[GitHub] maven-surefire issue #136: [SUREFIRE-1295] Attribute JVM crashes to tests

Posted by Tibor17 <gi...@git.apache.org>.
Github user Tibor17 commented on the issue:

    https://github.com/apache/maven-surefire/pull/136
  
    @michaeltandy 
    I will use your test but meanwhile I would like to avoid channelId used in ForckClient because channelId is obsolete and ForkClient is used per for/thread and therefore cannot use more than one channel.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[GitHub] maven-surefire issue #136: [SUREFIRE-1295] Attribute JVM crashes to tests

Posted by michaeltandy <gi...@git.apache.org>.
Github user michaeltandy commented on the issue:

    https://github.com/apache/maven-surefire/pull/136
  
    Back when I wrote my patch I didn't realise channelId was obsolete. If you want to get rid of it that's fine with me - I'm certainly not using it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[GitHub] maven-surefire issue #136: [SUREFIRE-1295] Attribute JVM crashes to tests

Posted by michaeltandy <gi...@git.apache.org>.
Github user michaeltandy commented on the issue:

    https://github.com/apache/maven-surefire/pull/136
  
    I've checked this against my integration test, and it looks OK to me.
    
    My change reported which test method was running at the time of the crash, rather than reporting only the class but for my application that doesn't matter as most of our test classes contain a single test method.
    
    If you want to merge my integration test into this, I pushed it to https://github.com/michaeltandy/maven-surefire/tree/SUREFIRE-1295-tests-for-Tibor17


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[GitHub] maven-surefire pull request #136: [SUREFIRE-1295] Attribute JVM crashes to t...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/maven-surefire/pull/136


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org