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

java/lang/ProcessHandle/InfoTest.java failed on case sensitive command

XMLWordPrintable

    • b68
    • generic
    • windows

        This happened on Windows Platform. I can reproduce it stably with jdk9-dev nightly build.


        Please refer to following test output:
        ----------System.out:(89/6084)*----------
        whoami: aurora, user.name: aurora
        [TestNG] Running:
          java/lang/ProcessHandle/InfoTest.java

        Note: when run in samevm mode the cputime of the test runner is included.
         info: [user: Optional[aurora], cmd: C:\\Users\\aurora\\CommonData\\jdk\\bin\\java.exe, startTime: Optional[2015-05-30T03:46:00.601Z], totalTime: Optional[PT1.25S]]
        test InfoTest.test1(): success
         info: [user: Optional[aurora], cmd: C:\\Users\\aurora\\CommonData\\jdk\\bin\\java.exe, startTime: Optional[2015-05-30T03:46:02.059Z], totalTime: Optional[PT0.765625S]]
        test InfoTest.test2(): failure
        java.lang.AssertionError: Command: expected: 'java', actual: Optional[C:\\Users\\aurora\\CommonData\\jdk\\bin\\java.exe] expected [C:\\users\\aurora\\CommonData\\jdk\\bin\\java.exe] but found [C:\\Users\\aurora\\CommonData\\jdk\\bin\\java.exe]
        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 InfoTest.test2(InfoTest.java:151)
        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)
         info: [user: Optional[aurora], cmd: C:\\Windows\\System32\\sleep.exe, startTime: Optional[2015-05-30T03:46:02.665Z], totalTime: Optional[PT0S]]
         info: [user: Optional[aurora], cmd: C:\\Windows\\System32\\sleep.exe, startTime: Optional[2015-05-30T03:46:03.680Z], totalTime: Optional[PT0S]]
        destroyProcessTree destroyForcibly
        pid 10476, alive: true; parent: Optional[3356], [user: Optional[aurora], cmd: C:\\Users\\aurora\\CommonData\\jdk\\bin\\java.exe, startTime: Optional[2015-05-30T03:46:02.059Z], totalTime: Optional[PT0.765625S]]
        test InfoTest.test3(): success
         total1 vs. mbean: PT1.34375S, getProcessCpuTime: PT1.34375S, diff: PT0S
         total2 vs. mbean: PT1.34375S, getProcessCpuTime: PT1.34375S, diff: PT0S
        test InfoTest.test4(): success
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1343750000, beanCpu: 1343750000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
         infoTotal: 1359375000, beanCpu: 1359375000, diff: 0
        test InfoTest.test5(): success

        ===============================================
        java/lang/ProcessHandle/InfoTest.java
        Total tests run: 5, Failures: 1, Skips: 0
        ===============================================

        ----------System.err:(14/810)----------
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:166)
        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)

              rriggs Roger Riggs
              xiaofeya Xiaofeng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: