-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b82
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142043 | emb-9 | Roger Riggs | P4 | Resolved | Fixed | team |
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)
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)
- backported by
-
JDK-8142043 (process) java/lang/ProcessHandle/InfoTest fails testing commandLine()
-
- Resolved
-
- relates to
-
JDK-8133552 java/lang/ProcessHandle/InfoTest.java fails intermittently - incorrect user
-
- Closed
-