< prev index next >

test/jdk/tools/jpackage/share/ErrorTest.java

Print this page

        

@@ -65,11 +65,11 @@
     };
     private static final String EXP2 = "class was not specified nor was";
 
     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: "
                     + output);
         }
< prev index next >