8337667: sun/tools/jcmd/TestJcmdPIDSubstitution.java is failing on mac and windows
Reviewed-by: stuefe, kevinw
This commit is contained in:
parent
fc652d2a58
commit
6733b89de1
@ -40,6 +40,8 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
|
||||
public class TestJcmdPIDSubstitution {
|
||||
|
||||
private static final String FILENAME = "myfile%p";
|
||||
@ -47,8 +49,10 @@ public class TestJcmdPIDSubstitution {
|
||||
public static void main(String[] args) throws Exception {
|
||||
verifyOutputFilenames("Thread.dump_to_file", FILENAME);
|
||||
verifyOutputFilenames("GC.heap_dump", FILENAME);
|
||||
verifyOutputFilenames("Compiler.perfmap", FILENAME);
|
||||
verifyOutputFilenames("System.dump_map", "-F=%s".formatted(FILENAME));
|
||||
if (Platform.isLinux()) {
|
||||
verifyOutputFilenames("Compiler.perfmap", FILENAME);
|
||||
verifyOutputFilenames("System.dump_map", "-F=%s".formatted(FILENAME));
|
||||
}
|
||||
}
|
||||
|
||||
private static void verifyOutputFilenames(String... args) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user