mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-25 04:47:53 +00:00
6703075: (process) java/lang/ProcessBuilder/Basic.java fails with fastdebug
Reviewed-by: alanb
This commit is contained in:
parent
d45f6482a3
commit
6c4294c2d9
@ -561,9 +561,10 @@ public class Basic {
|
||||
System.getProperty("java.class.path");
|
||||
|
||||
private static final List<String> javaChildArgs =
|
||||
Arrays.asList(new String[]
|
||||
{ javaExe, "-classpath", absolutifyPath(classpath),
|
||||
"Basic$JavaChild"});
|
||||
Arrays.asList(javaExe,
|
||||
"-XX:+DisplayVMOutputToStderr",
|
||||
"-classpath", absolutifyPath(classpath),
|
||||
"Basic$JavaChild");
|
||||
|
||||
private static void testEncoding(String encoding, String tested) {
|
||||
try {
|
||||
@ -1627,8 +1628,8 @@ public class Basic {
|
||||
javaExe));
|
||||
list.add("ArrayOOME");
|
||||
ProcessResults r = run(new ProcessBuilder(list));
|
||||
check(r.out().contains("java.lang.OutOfMemoryError:"));
|
||||
check(r.out().contains(javaExe));
|
||||
check(r.err().contains("java.lang.OutOfMemoryError:"));
|
||||
check(r.err().contains(javaExe));
|
||||
check(r.err().contains(System.getProperty("java.version")));
|
||||
equal(r.exitValue(), 1);
|
||||
} catch (Throwable t) { unexpected(t); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user