diff --git a/test/langtools/jdk/javadoc/doclet/testDocletExample/TestDocletExample.java b/test/langtools/jdk/javadoc/doclet/testDocletExample/TestDocletExample.java index 0f03248d733..f210b940b60 100644 --- a/test/langtools/jdk/javadoc/doclet/testDocletExample/TestDocletExample.java +++ b/test/langtools/jdk/javadoc/doclet/testDocletExample/TestDocletExample.java @@ -50,8 +50,12 @@ import javax.tools.JavaFileObject; public class TestDocletExample extends TestRunner { public static void main(String... args) throws Exception { - var t = new TestDocletExample(); - t.runTests(m -> new Object[] { Path.of(m.getName()) }); + try { + var t = new TestDocletExample(); + t.runTests(m -> new Object[] { Path.of(m.getName()) }); + } catch (SnippetUtils.ConfigurationException e) { + System.err.println("NOTE: " + e.getMessage() + "; test skipped"); + } } SnippetUtils snippets; diff --git a/test/langtools/tools/javac/api/snippets/TestJavaxToolsSnippets.java b/test/langtools/tools/javac/api/snippets/TestJavaxToolsSnippets.java index 10030df1679..eb5b071df6f 100644 --- a/test/langtools/tools/javac/api/snippets/TestJavaxToolsSnippets.java +++ b/test/langtools/tools/javac/api/snippets/TestJavaxToolsSnippets.java @@ -58,7 +58,11 @@ import toolbox.ToolBox; */ public class TestJavaxToolsSnippets extends TestRunner { public static void main(String... args) throws Exception { - new TestJavaxToolsSnippets().runTests(m -> new Object[] { Path.of(m.getName()) }); + try { + new TestJavaxToolsSnippets().runTests(m -> new Object[] { Path.of(m.getName()) }); + } catch (SnippetUtils.ConfigurationException e) { + System.err.println("NOTE: " + e.getMessage() + "; test skipped"); + } } SnippetUtils snippets = new SnippetUtils("java.compiler");