8175288: [TESTBUG] sun/tools/jcmd/TestJcmdDefaults.java failed to parse output of other java process
Enable dotall mode so test can parse Java process names containing line terminators Reviewed-by: ctornqvi, mseledtsov, gtriantafill
This commit is contained in:
parent
912c47ccbb
commit
c1d2fc5201
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, 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
|
||||
@ -50,7 +50,7 @@ public class TestJcmdDefaults {
|
||||
|
||||
private static final String TEST_SRC = System.getProperty("test.src").trim();
|
||||
private static final String[] VM_ARGS = new String[] { "-XX:+UsePerfData" };
|
||||
private static final String JCMD_LIST_REGEX = "^\\d+\\s*.*";
|
||||
private static final String JCMD_LIST_REGEX = "(?s)^\\d+\\s*.*";
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
testJcmdUsage("-h");
|
||||
|
Loading…
x
Reference in New Issue
Block a user