# HG changeset patch # User vromero # Date 1432840134 25200 # Node ID 9385b9c8506b9d4dedea0195621624e921d8b614 # Parent 2b3f379840f0789e6cd844fc3923814cea7dc439 8081417: test CheckEBCDICLocaleTest.java is failing intermittently Reviewed-by: darcy diff -r 2b3f379840f0 -r 9385b9c8506b 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 expectLines = Arrays.asList( String.format(TestOutTemplate, File.separator).split("\n")); List 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; + } } }