From 6733b89de1ed9ebcc1e8a8271970048ad0f0aac3 Mon Sep 17 00:00:00 2001 From: Chris Plummer Date: Tue, 6 Aug 2024 21:44:30 +0000 Subject: [PATCH] 8337667: sun/tools/jcmd/TestJcmdPIDSubstitution.java is failing on mac and windows Reviewed-by: stuefe, kevinw --- test/jdk/sun/tools/jcmd/TestJcmdPIDSubstitution.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/jdk/sun/tools/jcmd/TestJcmdPIDSubstitution.java b/test/jdk/sun/tools/jcmd/TestJcmdPIDSubstitution.java index f462ea1a52b..4af5bf1ff67 100644 --- a/test/jdk/sun/tools/jcmd/TestJcmdPIDSubstitution.java +++ b/test/jdk/sun/tools/jcmd/TestJcmdPIDSubstitution.java @@ -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 {