# HG changeset patch # User lmesnik # Date 1568392453 25200 # Node ID 41082cd965ccac2ef990091c085f8f8148d71f19 # Parent 1def54255e934bed024a4f4cef1d3c152b62a8c0 8230881: serviceability/sa/TestJmapCore tests fail with java.lang.RuntimeException: Could not find dump file Reviewed-by: dholmes, cjplummer diff -r 1def54255e93 -r 41082cd965cc test/hotspot/jtreg/serviceability/sa/TestJmapCore.java --- a/test/hotspot/jtreg/serviceability/sa/TestJmapCore.java Fri Sep 13 11:00:07 2019 +0100 +++ b/test/hotspot/jtreg/serviceability/sa/TestJmapCore.java Fri Sep 13 09:34:13 2019 -0700 @@ -98,8 +98,8 @@ : ProcessTools.executeProcess("sh", "-c", "ulimit -c unlimited && " + ProcessTools.getCommandLine(pb)); File core; - String pattern = Platform.isWindows() ? "mdmp" : "core"; - File[] cores = new File(".").listFiles((dir, name) -> name.contains(pattern)); + String pattern = Platform.isWindows() ? ".*\\.mdmp" : "core(\\.\\d+)?"; + File[] cores = new File(".").listFiles((dir, name) -> name.matches(pattern)); if (cores.length == 0) { // /cores/core.$pid might be generated on macosx by default String pid = output.firstMatch("^(\\d+)" + pidSeparator, 1);