changeset 2943:f4bb7061c8d5

8081417: test CheckEBCDICLocaleTest.java is failing intermittently Reviewed-by: darcy
author vromero
date Thu, 28 May 2015 12:08:54 -0700
parents 08092deced3f
children fd782cd69b04
files test/tools/javac/4846262/CheckEBCDICLocaleTest.java
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/4846262/CheckEBCDICLocaleTest.java	Wed May 27 13:25:18 2015 -0700
+++ b/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;
+        }
     }
 }