We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a4d4b commit 9597fcdCopy full SHA for 9597fcd
test/hotspot/jtreg/serviceability/sa/TestJmapCore.java
@@ -98,8 +98,8 @@ static void test(String type) throws Throwable {
98
: ProcessTools.executeProcess("sh", "-c", "ulimit -c unlimited && "
99
+ ProcessTools.getCommandLine(pb));
100
File core;
101
- String pattern = Platform.isWindows() ? "mdmp" : "core";
102
- 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));
103
if (cores.length == 0) {
104
// /cores/core.$pid might be generated on macosx by default
105
String pid = output.firstMatch("^(\\d+)" + pidSeparator, 1);
0 commit comments