java/nio/file/WatchService/DeleteInterference.java
java/nio/channels/AsynchronousSocketChannel/Basic.java
java/nio/file/FileSystem/Basic.java
java/nio/channels/FileChannel/InterruptMapDeadlock.java

Above nio tests are known to fail intermittently. This patch is to mark the test accordingly with keyword 'intermittent’ until issue resolved.

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

Thanks,
Amy

--- old/test/java/nio/channels/AsynchronousSocketChannel/Basic.java     
2016-05-09 17:15:14.000000000 +0800
+++ new/test/java/nio/channels/AsynchronousSocketChannel/Basic.java     
2016-05-09 17:15:14.000000000 +0800
@@ -25,7 +25,7 @@
  * @bug 4607272 6842687 6878369 6944810 7023403
  * @summary Unit test for AsynchronousSocketChannel
  * @run main Basic -skipSlowConnectTest
- * @key randomness
+ * @key randomness intermittent
  */
import java.nio.ByteBuffer;
--- old/test/java/nio/channels/FileChannel/InterruptMapDeadlock.java    
2016-05-09 17:15:15.000000000 +0800
+++ new/test/java/nio/channels/FileChannel/InterruptMapDeadlock.java    
2016-05-09 17:15:14.000000000 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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 8024833
+ * @key intermittent
  * @summary Tests interruption of threads mapping sections of a file channel in
  *   an attempt to deadlock due to nesting of begin calls.
  */
--- old/test/java/nio/file/FileSystem/Basic.java        2016-05-09 
17:15:15.000000000 +0800
+++ new/test/java/nio/file/FileSystem/Basic.java        2016-05-09 
17:15:15.000000000 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2015, 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 8132497
+ * @key intermittent
  * @summary Unit test for java.nio.file.FileSystem
  * @library .. /lib/testlibrary
  * @build jdk.testlibrary.FileUtils
--- old/test/java/nio/file/WatchService/DeleteInterference.java 2016-05-09 
17:15:16.000000000 +0800
+++ new/test/java/nio/file/WatchService/DeleteInterference.java 2016-05-09 
17:15:16.000000000 +0800
@@ -20,6 +20,7 @@
 /**
  * @test
  * @bug 8153925
+ * @key intermittent
  * @summary Tests potential interference between a thread creating and closing
  *     a WatchService with another thread that is deleting and re-creating the
  *     directory at around the same time. This scenario tickled a timing bug


Reply via email to