8081417: test CheckEBCDICLocaleTest.java is failing intermittently
authorvromero
Thu, 28 May 2015 12:08:54 -0700
changeset 30847 9385b9c8506b
parent 30846 2b3f379840f0
child 30848 c275389a3680
8081417: test CheckEBCDICLocaleTest.java is failing intermittently Reviewed-by: darcy
langtools/test/tools/javac/4846262/CheckEBCDICLocaleTest.java
--- a/langtools/test/tools/javac/4846262/CheckEBCDICLocaleTest.java	Wed May 27 13:25:18 2015 -0700
+++ b/langtools/test/tools/javac/4846262/CheckEBCDICLocaleTest.java	Thu May 28 12:08:54 2015 -0700
@@ -84,6 +84,20 @@
         List<String> expectLines = Arrays.asList(
                 String.format(TestOutTemplate, File.separator).split("\n"));
         List<String> actualLines = Files.readAllLines(Paths.get("Test.out"));
-        tb.checkEqual(expectLines, actualLines);
+        try {
+            tb.checkEqual(expectLines, actualLines);
+        } catch (Throwable tt) {
+            System.err.println("current ouput don't have the expected number of lines. See output below");
+
+            System.err.println("Expected output:");
+            System.err.println(TestOutTemplate);
+            System.err.println();
+            System.err.println("Actual output:");
+            for (String s : actualLines) {
+                System.err.println(s);
+            }
+            System.err.println();
+            throw tt;
+        }
     }
 }