8134420: sun/tools/jps/TestJpsClass fails with java.lang.RuntimeException: The line 'line 2' does not match pattern '^\\d+\\s+.*': expected true, was false
Reviewed-by: sla, dsamersoff
This commit is contained in:
parent
60cdefbf44
commit
d9e40f6803
jdk
src/jdk.jcmd/share/classes/sun/tools/jps
test
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -106,7 +106,11 @@ public class Jps {
|
||||
errorString = " -- jvm args information unavailable";
|
||||
String jvmArgs = MonitoredVmUtil.jvmArgs(vm);
|
||||
if (jvmArgs != null && jvmArgs.length() > 0) {
|
||||
output.append(' ').append(jvmArgs);
|
||||
output.append(' ')
|
||||
.append(
|
||||
// multi-line args are permitted
|
||||
jvmArgs.replace("\n", "\\n").replace("\r", "\\r")
|
||||
);
|
||||
}
|
||||
}
|
||||
if (arguments.showVmFlags()) {
|
||||
|
@ -387,11 +387,6 @@ sun/tools/jstatd/TestJstatdExternalRegistry.java generic-all
|
||||
# 6456333
|
||||
sun/tools/jps/TestJpsJarRelative.java generic-all
|
||||
|
||||
# 8134420
|
||||
sun/tools/jps/TestJpsClass.java generic-all
|
||||
sun/tools/jps/TestJpsJar.java generic-all
|
||||
sun/tools/jps/TestJpsSanity.java generic-all
|
||||
|
||||
# 6734748
|
||||
sun/tools/jinfo/JInfoRunningProcessFlagTest.java generic-all
|
||||
|
||||
|
@ -138,6 +138,8 @@ public final class JpsBase {
|
||||
String tmp = str.replace("\\", "\\\\");
|
||||
tmp = tmp.replace("+", "\\+");
|
||||
tmp = tmp.replace(".", "\\.");
|
||||
tmp = tmp.replace("\n", "\\\\n");
|
||||
tmp = tmp.replace("\r", "\\\\r");
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,10 @@ public final class JpsHelper {
|
||||
* VM arguments to start test application with.
|
||||
* -XX:+UsePerfData is required for running the tests on embedded platforms.
|
||||
*/
|
||||
public static final String[] VM_ARGS = {"-XX:+UsePerfData", "-Xmx512m", "-XX:+PrintGCDetails"};
|
||||
public static final String[] VM_ARGS = {
|
||||
"-XX:+UsePerfData", "-Xmx512m", "-XX:+PrintGCDetails",
|
||||
"-Dmultiline.prop=value1\nvalue2\r\nvalue3"
|
||||
};
|
||||
/**
|
||||
* VM flag to start test application with
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user