From ccbfbe87360b4b102196de037fca42289423ad34 Mon Sep 17 00:00:00 2001 From: Alexander Zuev Date: Thu, 3 Oct 2013 17:40:45 +0400 Subject: [PATCH] 8025738: locale related test fails on langtools mac 10.7 test host Reviewed-by: ksrini --- jdk/test/tools/launcher/DiacriticTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jdk/test/tools/launcher/DiacriticTest.java b/jdk/test/tools/launcher/DiacriticTest.java index 44107bae42f..e43cedffc40 100644 --- a/jdk/test/tools/launcher/DiacriticTest.java +++ b/jdk/test/tools/launcher/DiacriticTest.java @@ -54,7 +54,13 @@ public class DiacriticTest extends TestHelper { "}\n"; ArrayList content = new ArrayList<>(); content.add(source); - createFile(sourceFile, content); + try { + createFile(sourceFile, content); + } catch (java.nio.file.InvalidPathException ipe) { + System.out.println("The locale or file system is configured in a way " + + "that prevents file creation. Real testing impossible."); + return; + } HashMap env = new HashMap<>(); env.put("LC_CTYPE", "UTF-8");