OpenJDK / portola / portola
changeset 20510:46e33ac1d91b
8025738: locale related test fails on langtools mac 10.7 test host
Reviewed-by: ksrini
author | kizune |
---|---|
date | Thu, 03 Oct 2013 17:40:45 +0400 |
parents | 9f5b0fa647cd |
children | 852c376528ca |
files | jdk/test/tools/launcher/DiacriticTest.java |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/test/tools/launcher/DiacriticTest.java Thu Oct 03 16:54:55 2013 +0400 +++ b/jdk/test/tools/launcher/DiacriticTest.java Thu Oct 03 17:40:45 2013 +0400 @@ -54,7 +54,13 @@ "}\n"; ArrayList<String> 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<String, String> env = new HashMap<>(); env.put("LC_CTYPE", "UTF-8");