OpenJDK / jdk / hs
changeset 46845:9c029ec7c296
8175288: [TESTBUG] sun/tools/jcmd/TestJcmdDefaults.java failed to parse output of other java process
Summary: Enable dotall mode so test can parse Java process names containing line terminators
Reviewed-by: ctornqvi, mseledtsov, gtriantafill
author | hseigel |
---|---|
date | Fri, 17 Mar 2017 08:40:12 -0400 |
parents | 36796fc011d8 |
children | 292be53258b7 |
files | jdk/test/sun/tools/jcmd/TestJcmdDefaults.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/test/sun/tools/jcmd/TestJcmdDefaults.java Thu Mar 16 18:16:39 2017 -0700 +++ b/jdk/test/sun/tools/jcmd/TestJcmdDefaults.java Fri Mar 17 08:40:12 2017 -0400 @@ -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 @@ 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");