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

(process) java/lang/ProcessHandle/InfoTest fails testing commandLine()

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b82

      Backports

        Description

        In some file system configurations, java/lang/ProcessHandle/InfoTest.java test2
        fails if the real pathname of the executable is not the same as given in the commandline.
        Symbolic links are resolved early; note the difference between the cmd: and the path to the executable given by jtreg.

        info: [user: Optional[jprtadm], cmd: /scratch/jprt/T/P1/182041.amurillo/testproduct/linux_x64_2.6-product/bin/java, args: [-XX:+DisplayVMOutputToStderr, -Dtest.jdk=/opt/jprt/T/P1/182041.amurillo/testproduct/linux_x64_2.6-product, -classpath, /scratch/jprt/products/P1/jtreg4.1-latest/jtreg/lib/javatest.jar:/scratch/jprt/products/P1/jtreg4.1-latest/jtreg/lib/jtreg.jar:/scratch/jprt/T/P1/182041.amurillo/s/jdk/testoutput/jdk_lang/JTwork/classes/java/lang/ProcessHandle:/scratch/jprt/T/P1/182041.amurillo/s/jdk/test/java/lang/ProcessHandle:/scratch/jprt/T/P1/182041.amurillo/s/jdk/testoutput/jdk_lang/JTwork/classes/lib/testlibrary:/scratch/jprt/products/P1/jtreg4.1-latest/jtreg/lib/testng.jar, JavaChild, pid, parent, stdin], startTime: Optional[2015-08-17T21:38:31.810Z], totalTime: Optional[PT0.47S]]
        test InfoTest.test2(): failure
        java.lang.AssertionError: commandLine() must contain argument: /opt/jprt/T/P1/182041.amurillo/testproduct/linux_x64_2.6-product/bin/java 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 InfoTest.test2(InfoTest.java:206)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: