Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8085981

java/lang/ProcessHandle/OnExitTest.java: AssertionError: Child onExit not called: 9680, parent: 23280: [] expected [true] but found [false]

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b73
    • CPU:
      x86
    • OS:
      windows

      Backports

        Description

        jdk9 b68 PIT
        single failure on win64

        [TestNG] Running:
          java/lang/ProcessHandle/OnExitTest.java

        args: 23136 [exit, 0]
        23136:1 exit 0
         javaChild done: java.lang.ProcessImpl@1f0f42a, exitStatus: 0
        args: 22920 [exit, 1]
        22920:1 exit 1
         javaChild done: java.lang.ProcessImpl@466779, exitStatus: 1
        args: 53856 [exit, 10]
        53856:1 exit 10
         javaChild done: java.lang.ProcessImpl@1428c38, exitStatus: 10
        test OnExitTest.test1(): success
         spawned: 23280
         subprocess count: 0, waiting for 9
         subprocess count: 3, waiting for 9
         subprocess count: 3, waiting for 9
         subprocess count: 9, waiting for 9
        whenComplete: pid: 40872, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-25,10,system], elapsed: PT0.139106S
        whenComplete: pid: 16612, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-29,10,system], elapsed: PT0.1771325S
        whenComplete: pid: 9680, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-11,10,system], elapsed: PT0.1771325S
        whenComplete: pid: 22444, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-22,10,system], elapsed: PT0.1771325S
        whenComplete: pid: 23204, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-1,10,system], elapsed: PT0.1851382S
        whenComplete: pid: 47188, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-4,10,system], elapsed: PT0.1801347S
        whenComplete: pid: 29676, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-8,10,system], elapsed: PT0.1961578S
        whenComplete: pid: 49036, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-15,10,system], elapsed: PT0.1771325S
        whenComplete: pid: 35708, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-18,10,system], elapsed: PT0.1451158S
        test OnExitTest.test2(): failure
        java.lang.AssertionError: Child onExit not called: 9680, parent: 23280: [] expected [true] but found [false]
        at org.testng.Assert.fail(Assert.java:94)
        at org.testng.Assert.failNotEquals(Assert.java:494)
        at org.testng.Assert.assertTrue(Assert.java:42)
        at OnExitTest.lambda$test2$7(OnExitTest.java:171)
        at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1598)
        at OnExitTest.test2(OnExitTest.java:170)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:502)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
        at org.testng.TestRunner.privateRun(TestRunner.java:767)
        at org.testng.TestRunner.run(TestRunner.java:617)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
        at org.testng.SuiteRunner.run(SuiteRunner.java:240)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
        at org.testng.TestNG.run(TestNG.java:1057)
        at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:163)
        at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:147)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:502)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:745)

        ===============================================
        java/lang/ProcessHandle/OnExitTest.java
        Total tests run: 2, Failures: 1, Skips: 0
        ===============================================


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rriggs Roger Riggs
                Reporter:
                dfazunen Dmitry Fazunenko (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: