changeset 5053:3fc0b57dcdf3

7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently Reviewed-by: chegar
author alanb
date Mon, 21 May 2012 10:41:08 +0100
parents 7aa3e08ba7c1
children d3470aea1f60
files test/java/nio/MappedByteBuffer/Truncate.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/MappedByteBuffer/Truncate.java	Wed May 16 12:43:27 2012 +0100
+++ b/test/java/nio/MappedByteBuffer/Truncate.java	Mon May 21 10:41:08 2012 +0100
@@ -88,6 +88,11 @@
             }
         };
         Thread t = new Thread(r);
+        t.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
+            public void uncaughtException(Thread t, Throwable e) {
+                e.printStackTrace();
+            }
+        });
         t.start();
         try { t.join(); } catch (InterruptedException ignore) { }
     }