8067947 - Regression test for JDK-6522873
Christian Tornqvist
christian.tornqvist at oracle.com
Fri Dec 19 16:05:08 UTC 2014
Hi Jesper,
I don't think you need to add the ErrorOnStart class in testlibrary, you
should be able to replace it by just doing the following in the test for
loop:
String testOption = option + "junk";
ProcessBuilder pb =
ProcessTools.createJavaProcessBuilder(testOption, "-version");
new OutputAnalyzer(pb.start())
.shouldContain("Unrecognized option: " + testOption)
.shouldHaveExitValue(1);
Thanks,
Christian
-----Original Message-----
From: hotspot-runtime-dev
[mailto:hotspot-runtime-dev-bounces at openjdk.java.net] On Behalf Of Jesper
Wilhelmsson
Sent: Friday, December 19, 2014 10:54 AM
To: hotspot-runtime-dev
Subject: RFR: 8067947 - Regression test for JDK-6522873
Hi,
Please review this regression test for the command line flags that no longer
allow arbitrary junk characters at the end.
Bug: https://bugs.openjdk.java.net/browse/JDK-8067947
Webrev: http://cr.openjdk.java.net/~jwilhelm/8067947/webrev.00/
Thanks,
/Jesper
More information about the hotspot-runtime-dev
mailing list