changeset 5155:c0f0ceab769a

7144086: TEST_BUG: java/nio/file/WatchService/SensitivityModifier.java failing intermittently Reviewed-by: chegar
author alanb
date Thu, 09 Feb 2012 16:38:36 +0000
parents 1ff37a4aa198
children 61a496db0378
files test/java/nio/file/WatchService/SensitivityModifier.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/file/WatchService/SensitivityModifier.java	Tue Feb 07 13:28:32 2012 +0000
+++ b/test/java/nio/file/WatchService/SensitivityModifier.java	Thu Feb 09 16:38:36 2012 +0000
@@ -96,6 +96,7 @@
 
             // drain events (to avoid interference)
             do {
+                key.pollEvents();
                 key.reset();
                 key = watcher.poll(1, TimeUnit.SECONDS);
             } while (key != null);