--- old/test/jdk/tools/jpackage/share/ErrorTest.java 2019-09-25 16:20:15.384923200 -0400 +++ new/test/jdk/tools/jpackage/share/ErrorTest.java 2019-09-25 16:20:13.294483000 -0400 @@ -67,7 +67,7 @@ private static void validate(String output, String expected, boolean single) throws Exception { - String[] result = output.split("\n"); + String[] result = JPackageHelper.splitAndFilter(output); if (single && result.length != 1) { System.err.println(output); throw new AssertionError("Unexpected multiple lines of output: "