File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 4040import java .nio .file .Path ;
4141import java .nio .file .Paths ;
4242
43+ import jdk .test .lib .Platform ;
44+
4345public class TestJcmdPIDSubstitution {
4446
4547 private static final String FILENAME = "myfile%p" ;
4648
4749 public static void main (String [] args ) throws Exception {
4850 verifyOutputFilenames ("Thread.dump_to_file" , FILENAME );
4951 verifyOutputFilenames ("GC.heap_dump" , FILENAME );
50- verifyOutputFilenames ("Compiler.perfmap" , FILENAME );
51- verifyOutputFilenames ("System.dump_map" , "-F=%s" .formatted (FILENAME ));
52+ if (Platform .isLinux ()) {
53+ verifyOutputFilenames ("Compiler.perfmap" , FILENAME );
54+ verifyOutputFilenames ("System.dump_map" , "-F=%s" .formatted (FILENAME ));
55+ }
5256 }
5357
5458 private static void verifyOutputFilenames (String ... args ) throws Exception {
You can’t perform that action at this time.
0 commit comments