8043786: [TESTBUG] runtime/CommandLine/TestHexArguments.java test fails in nightly
Summary: Changed test to not pass on external flags to child processes
Reviewed-by: coleenp, hseigel
--- a/hotspot/test/runtime/CommandLine/TestHexArguments.java Wed May 28 15:03:36 2014 +0000
+++ b/hotspot/test/runtime/CommandLine/TestHexArguments.java Wed May 28 22:59:29 2014 +0200
@@ -35,14 +35,14 @@
public class TestHexArguments {
public static void main(String args[]) throws Exception {
String[] javaArgs = {"-XX:SharedBaseAddress=0x1D000000", "-version"};
- ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(true, javaArgs);
+ ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(javaArgs);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldNotContain("Could not create the Java Virtual Machine");
output.shouldHaveExitValue(0);
String[] javaArgs1 = {"-XX:SharedBaseAddress=1D000000", "-version"};
- pb = ProcessTools.createJavaProcessBuilder(true, javaArgs1);
+ pb = ProcessTools.createJavaProcessBuilder(javaArgs1);
output = new OutputAnalyzer(pb.start());
output.shouldContain("Could not create the Java Virtual Machine");
}