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.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
|
||||||
|
import jdk.test.lib.Platform;
|
||||||
|
|
||||||
public class TestJcmdPIDSubstitution {
|
public class TestJcmdPIDSubstitution {
|
||||||
|
|
||||||
private static final String FILENAME = "myfile%p";
|
private static final String FILENAME = "myfile%p";
|
||||||
@ -47,8 +49,10 @@ public class TestJcmdPIDSubstitution {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
verifyOutputFilenames("Thread.dump_to_file", FILENAME);
|
verifyOutputFilenames("Thread.dump_to_file", FILENAME);
|
||||||
verifyOutputFilenames("GC.heap_dump", FILENAME);
|
verifyOutputFilenames("GC.heap_dump", FILENAME);
|
||||||
verifyOutputFilenames("Compiler.perfmap", FILENAME);
|
if (Platform.isLinux()) {
|
||||||
verifyOutputFilenames("System.dump_map", "-F=%s".formatted(FILENAME));
|
verifyOutputFilenames("Compiler.perfmap", FILENAME);
|
||||||
|
verifyOutputFilenames("System.dump_map", "-F=%s".formatted(FILENAME));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void verifyOutputFilenames(String... args) throws Exception {
|
private static void verifyOutputFilenames(String... args) throws Exception {
|
||||||
|
Loading…
Reference in New Issue
Block a user