diff --git a/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java b/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java index d122441e5..7dbb5caf8 100644 --- a/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java +++ b/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java @@ -151,7 +151,10 @@ public static int testInvariants(String inputFile, boolean doRange) throws IOExc try (final PrintWriter out2 = FileUtilities.openUTF8Writer( Settings.Output.GEN_DIR, - "UnicodeTestResults." + (doHtml ? "html" : "txt"))) { + "UnicodeTestResults" + + (inputFile == null ? "" : "-" + inputFile.split("\\.")[0]) + + "." + + (doHtml ? "html" : "txt"))) { final StringWriter writer = new StringWriter(); try (PrintWriter out3 = new PrintWriter(writer)) { out = out3;