Below nio tests are known to fail intermittently:

java/nio/channels/etc/AdaptorCloseAndInterrupt.java (JDK-8136899, JDK-8150811)
java/nio/file/WatchService/Basic.java (JDK-7158947)

This patch is to mark the test accordingly with keyword 'intermittent'.

bug: https://bugs.openjdk.java.net/browse/JDK-8152749
webrev: http://cr.openjdk.java.net/~amlu/8152749/webrev.00/

Thanks,
Amy

--- old/test/java/nio/channels/etc/AdaptorCloseAndInterrupt.java        
2016-03-25 16:46:48.000000000 +0800
+++ new/test/java/nio/channels/etc/AdaptorCloseAndInterrupt.java        
2016-03-25 16:46:48.000000000 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,7 +24,7 @@
 /* @test
  * @bug 7184932
  * @summary Test asynchronous close and interrupt of timed socket adapter 
methods
- * @key randomness
+ * @key randomness intermittent
  */
import java.io.*;
--- old/test/java/nio/file/WatchService/Basic.java      2016-03-25 
16:46:49.000000000 +0800
+++ new/test/java/nio/file/WatchService/Basic.java      2016-03-25 
16:46:49.000000000 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,7 @@
/* @test
  * @bug 4313887 6838333 7017446 8011537 8042470
+ * @key intermittent
  * @summary Unit test for java.nio.file.WatchService
  * @library ..
  * @run main Basic


Reply via email to