提交 95fb04b2 编写于 作者: M martin

6703075: (process) java/lang/ProcessBuilder/Basic.java fails with fastdebug

Reviewed-by: alanb
上级 6014d53d
...@@ -561,9 +561,10 @@ public class Basic { ...@@ -561,9 +561,10 @@ public class Basic {
System.getProperty("java.class.path"); System.getProperty("java.class.path");
private static final List<String> javaChildArgs = private static final List<String> javaChildArgs =
Arrays.asList(new String[] Arrays.asList(javaExe,
{ javaExe, "-classpath", absolutifyPath(classpath), "-XX:+DisplayVMOutputToStderr",
"Basic$JavaChild"}); "-classpath", absolutifyPath(classpath),
"Basic$JavaChild");
private static void testEncoding(String encoding, String tested) { private static void testEncoding(String encoding, String tested) {
try { try {
...@@ -1627,8 +1628,8 @@ public class Basic { ...@@ -1627,8 +1628,8 @@ public class Basic {
javaExe)); javaExe));
list.add("ArrayOOME"); list.add("ArrayOOME");
ProcessResults r = run(new ProcessBuilder(list)); ProcessResults r = run(new ProcessBuilder(list));
check(r.out().contains("java.lang.OutOfMemoryError:")); check(r.err().contains("java.lang.OutOfMemoryError:"));
check(r.out().contains(javaExe)); check(r.err().contains(javaExe));
check(r.err().contains(System.getProperty("java.version"))); check(r.err().contains(System.getProperty("java.version")));
equal(r.exitValue(), 1); equal(r.exitValue(), 1);
} catch (Throwable t) { unexpected(t); } } catch (Throwable t) { unexpected(t); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册