Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8251031: Some vmTestbase/nsk/monitoring/RuntimeMXBean tests fail with…
… hostnames starting from digits

Reviewed-by: dholmes, cjplummer, sspitsyn
  • Loading branch information
DamonFool committed Aug 5, 2020
1 parent d523e83 commit 26d736db49e09c4ee2371b48627533f46f397bcf
Showing 1 changed file with 2 additions and 1 deletion.
@@ -56,7 +56,8 @@ public class RuntimeMXBean006 extends MonitoringTestBase implements Initializabl
public void initialize() {
runtime = monitoringFactory.getRuntimeMXBean();
/* Name should be on the format <pid>@<hostname>. */
namePattern = Pattern.compile("^[0-9]+@(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\\-]*[A-Za-z0-9])$");
namePattern = Pattern.compile("^[0-9]+@(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*" +
"[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$");
}

private void testGetName() {

0 comments on commit 26d736d

Please sign in to comment.