-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
9
sun/tools/jinfo/JInfoTest.java
91: // "HotSpot(TM)" written once per proc
92: documentMatch(output.getStdout(), ".*HotSpot\\(TM\\).*HotSpot\\(TM\\).*");
Test hard code the vm version string "HotSpot(TM)" for matching, this fails test with OpenJDK.
This more looks like testbug.
OpenJDK version info:
openjdk-9/bin/java -version
openjdk version "9-ea"
OpenJDK Runtime Environment (build 9-ea+160)
OpenJDK 64-Bit Server VM (build 9-ea+160, mixed mode)
And java.vm.name=OpenJDK 64-Bit Server VM
Test fails with:
----------System.err:(15/835)*----------
java.lang.RuntimeException: '.*HotSpot\\(TM\\).*HotSpot\\(TM\\).*' missing from stdout
at JInfoTest.documentMatch(JInfoTest.java:102)
at JInfoTest.classNameMatch(JInfoTest.java:92)
at JInfoTest.main(JInfoTest.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:547)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
at java.base/java.lang.Thread.run(Thread.java:844)
91: // "HotSpot(TM)" written once per proc
92: documentMatch(output.getStdout(), ".*HotSpot\\(TM\\).*HotSpot\\(TM\\).*");
Test hard code the vm version string "HotSpot(TM)" for matching, this fails test with OpenJDK.
This more looks like testbug.
OpenJDK version info:
openjdk-9/bin/java -version
openjdk version "9-ea"
OpenJDK Runtime Environment (build 9-ea+160)
OpenJDK 64-Bit Server VM (build 9-ea+160, mixed mode)
And java.vm.name=OpenJDK 64-Bit Server VM
Test fails with:
----------System.err:(15/835)*----------
java.lang.RuntimeException: '.*HotSpot\\(TM\\).*HotSpot\\(TM\\).*' missing from stdout
at JInfoTest.documentMatch(JInfoTest.java:102)
at JInfoTest.classNameMatch(JInfoTest.java:92)
at JInfoTest.main(JInfoTest.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:547)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
at java.base/java.lang.Thread.run(Thread.java:844)
- duplicates
-
JDK-8176471 [TESTBUG] runtime/modules/IgnoreModulePropertiesTest.java fails with OpenJDK: java.lang.RuntimeException: 'java version ' missing from stdout/stderr
- Closed