Description
make run-test TEST=open/test/jdk/sun/tools/jps/TestJps.java TEST_VM_OPTS="-XX:+IgnoreUnrecognizedVMOptions -XX:-MylonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglongOption"
fails with:
java.lang.RuntimeException: '^25968.*-XX:Flags=C:\\\\ade\\\\jvm\\\\jdk-master\\\\build\\\\windows-x64-debug\\\\test-support\\\\jtreg_open_test_jdk_sun_tools_jps_TestJps_java\\\\scratch\\\\0\\\\vmflags.*' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
at JpsHelper.runJpsVariants(JpsHelper.java:243)
at TestJps.testJps(TestJps.java:56)
at TestJps.main(TestJps.java:64)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
The test fails analyzing "jps -v" output
Corresponding log:
25968 LingeredAppForJps -Xmx768m -XX:MaxRAMPercentage=6.25 -Djava.io.tmpdir=c:\\ade\\jvm\\jdk-master\\build\\windows-x64-debug\\test-support\\jtreg_open_test_jdk_sun_tools_jps_TestJps_java\\tmp -XX:+IgnoreUnrecognizedVMOptions -XX:-MylonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglongOption -ea -esa -XX:+UsePerfData -Xmx512m -Xlog:gc -Dmultiline.prop=value1\\nvalue2\\r\\nvalue3 -XX:Flags=C:\\ade\\jvm\\jdk
This is artificial example, but we have failures in Oracle CI in some environments due long paths which make VM argument string too long (> 1024 symbols)
fails with:
java.lang.RuntimeException: '^25968.*-XX:Flags=C:\\\\ade\\\\jvm\\\\jdk-master\\\\build\\\\windows-x64-debug\\\\test-support\\\\jtreg_open_test_jdk_sun_tools_jps_TestJps_java\\\\scratch\\\\0\\\\vmflags.*' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
at JpsHelper.runJpsVariants(JpsHelper.java:243)
at TestJps.testJps(TestJps.java:56)
at TestJps.main(TestJps.java:64)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
The test fails analyzing "jps -v" output
Corresponding log:
25968 LingeredAppForJps -Xmx768m -XX:MaxRAMPercentage=6.25 -Djava.io.tmpdir=c:\\ade\\jvm\\jdk-master\\build\\windows-x64-debug\\test-support\\jtreg_open_test_jdk_sun_tools_jps_TestJps_java\\tmp -XX:+IgnoreUnrecognizedVMOptions -XX:-MylonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglongOption -ea -esa -XX:+UsePerfData -Xmx512m -Xlog:gc -Dmultiline.prop=value1\\nvalue2\\r\\nvalue3 -XX:Flags=C:\\ade\\jvm\\jdk
This is artificial example, but we have failures in Oracle CI in some environments due long paths which make VM argument string too long (> 1024 symbols)
Attachments
Issue Links
- relates to
-
JDK-7091209 jps -v truncates argument to 1024 symbols
-
- Closed
-