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

java/lang/ProcessHandle/InfoTest.java fails intermittently - incorrect user

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b82

      Backports

        Description

        java/lang/ProcessHandle/InfoTest.java fails intermittently


        test InfoTest.test2(): success
         info: [user: Optional[root], startTime: Optional[2015-08-08T22:05:50.330Z], totalTime: Optional[PT0S]]
        destroyProcessTree destroyForcibly
        pid 3085, alive: true; parent: Optional[1311], [user: Optional[aurora], cmd: /scratch/aurora/sandbox_keepme/jdk/bin/java, args: [-XX:+DisplayVMOutputToStderr, -Dtest.jdk=/scratch/aurora/sandbox_keepme/jdk, -classpath, /scratch/aurora/sandbox_keepme/jtreg/lib/javatest.jar:/scratch/aurora/sandbox_keepme/jtreg/lib/jtreg.jar:/scratch/aurora/sandbox_keepme/results/run_175/testoutput/tier1/JTwork/classes/6/java/lang/ProcessHandle:/scratch/aurora/sandbox_keepme/testbase/jdk/test/java/lang/ProcessHandle:/scratch/aurora/sandbox_keepme/results/run_175/testoutput/tier1/JTwork/classes/6/lib/testlibrary:/scratch/aurora/sandbox_keepme/jtreg/lib/testng.jar, JavaChild, pid, parent, stdin], startTime: Optional[2015-08-08T22:05:09.460Z], totalTime: Optional[PT1.63S]]
        test InfoTest.test3(): failure
        java.lang.AssertionError: expected [aurora] but found [root]
        at org.testng.Assert.fail(Assert.java:94)
        at org.testng.Assert.failNotEquals(Assert.java:494)
        at org.testng.Assert.assertEquals(Assert.java:123)
        at org.testng.Assert.assertEquals(Assert.java:176)
        at org.testng.Assert.assertEquals(Assert.java:186)
        at InfoTest.test3(InfoTest.java:236)
        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:504)
        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:504)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:746)
         total1 vs. mbean: PT1.51S, getProcessCpuTime: PT1.51S, diff: PT0S
         total2 vs. mbean: PT1.51S, getProcessCpuTime: PT1.51S, diff: PT0S
        test InfoTest.test4(): success

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rriggs Roger Riggs
                Reporter:
                amlu Amy Lu (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: