Skip to content

Commit 9597fcd

Browse files
committed
8230881: serviceability/sa/TestJmapCore tests fail with java.lang.RuntimeException: Could not find dump file
Reviewed-by: dholmes, cjplummer
1 parent 49a4d4b commit 9597fcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/hotspot/jtreg/serviceability/sa/TestJmapCore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ static void test(String type) throws Throwable {
9898
: ProcessTools.executeProcess("sh", "-c", "ulimit -c unlimited && "
9999
+ ProcessTools.getCommandLine(pb));
100100
File core;
101-
String pattern = Platform.isWindows() ? "mdmp" : "core";
102-
File[] cores = new File(".").listFiles((dir, name) -> name.contains(pattern));
101+
String pattern = Platform.isWindows() ? ".*\\.mdmp" : "core(\\.\\d+)?";
102+
File[] cores = new File(".").listFiles((dir, name) -> name.matches(pattern));
103103
if (cores.length == 0) {
104104
// /cores/core.$pid might be generated on macosx by default
105105
String pid = output.firstMatch("^(\\d+)" + pidSeparator, 1);

0 commit comments

Comments
 (0)