8081417: test CheckEBCDICLocaleTest.java is failing intermittently
Reviewed-by: darcy
--- 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;
+ }
}
}