8179002: jdk/jshell/MergedTabShiftTabExpressionTest.java fails intermittently
authorjlahoda
Mon, 24 Apr 2017 18:58:50 +0200
changeset 44821 c436e60e7af8
parent 44820 d3379f475bf4
child 44822 2f24758e7ae0
8179002: jdk/jshell/MergedTabShiftTabExpressionTest.java fails intermittently Summary: Handle incomming byte arrays in batches, to avoid unnecessary matching. Reviewed-by: rfield
langtools/test/ProblemList.txt
langtools/test/jdk/jshell/UITesting.java
--- a/langtools/test/ProblemList.txt	Fri Apr 21 13:58:57 2017 -0700
+++ b/langtools/test/ProblemList.txt	Mon Apr 24 18:58:50 2017 +0200
@@ -36,7 +36,6 @@
 #
 # jshell
 
-jdk/jshell/MergedTabShiftTabExpressionTest.java                                 8179002    windows-i586
 jdk/jshell/UserJdiUserRemoteTest.java                                           8173079    linux-all
 jdk/jshell/UserInputTest.java                                                   8169536    generic-all   
 
--- a/langtools/test/jdk/jshell/UITesting.java	Fri Apr 21 13:58:57 2017 -0700
+++ b/langtools/test/jdk/jshell/UITesting.java	Mon Apr 24 18:58:50 2017 +0200
@@ -55,6 +55,14 @@
                     out.notifyAll();
                 }
             }
+            @Override public void write(byte[] b, int off, int len) throws IOException {
+                synchronized (out) {
+                    String data = new String(b, off, len);
+                    System.out.print(data);
+                    out.append(data);
+                    out.notifyAll();
+                }
+            }
         });
         Thread runner = new Thread(() -> {
             try {