8075565: Define @intermittent jtreg keyword and mark intermittently failing jdk tests
authordarcy
Thu, 19 Mar 2015 18:38:26 -0700
changeset 29528 d1a052f7ccef
parent 29527 16f345e87b27
child 29529 54be38d2d0d1
8075565: Define @intermittent jtreg keyword and mark intermittently failing jdk tests Reviewed-by: lancea
jdk/test/TEST.ROOT
jdk/test/com/sun/jndi/ldap/LdapTimeoutTest.java
jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java
jdk/test/java/lang/ref/OOMEInReferenceHandler.java
jdk/test/java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java
jdk/test/java/net/SocketPermission/SocketPermissionTest.java
jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java
jdk/test/java/nio/channels/Selector/Wakeup.java
jdk/test/java/nio/channels/ServerSocketChannel/AdaptServerSocket.java
jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh
jdk/test/java/nio/file/FileStore/Basic.java
jdk/test/java/nio/file/Files/InterruptCopy.java
jdk/test/java/rmi/activation/Activatable/checkActivateRef/CheckActivateRef.java
jdk/test/java/rmi/registry/interfaceHash/InterfaceHash.java
jdk/test/java/rmi/server/UnicastRemoteObject/exportObject/GcDuringExport.java
jdk/test/javax/net/ssl/TLS/TestJSSE.java
--- a/jdk/test/TEST.ROOT	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/TEST.ROOT	Thu Mar 19 18:38:26 2015 -0700
@@ -2,7 +2,7 @@
 # It also contains test-suite configuration information.
 
 # The list of keywords supported in the entire test suite
-keys=2d dnd i18n
+keys=2d dnd i18n intermittent
 
 # Tests that must run in othervm mode
 othervm.dirs=java/awt java/beans javax/accessibility javax/imageio javax/sound javax/print javax/management com/sun/awt sun/awt sun/java2d sun/pisces javax/xml/jaxp/testng/validation
--- a/jdk/test/com/sun/jndi/ldap/LdapTimeoutTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/com/sun/jndi/ldap/LdapTimeoutTest.java	Thu Mar 19 18:38:26 2015 -0700
@@ -26,6 +26,7 @@
  * @run main/othervm LdapTimeoutTest
  * @bug 7094377 8000487 6176036 7056489
  * @summary Timeout tests for ldap
+ * @key intermittent
  */
 
 import java.net.Socket;
--- a/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java	Thu Mar 19 18:38:26 2015 -0700
@@ -41,6 +41,7 @@
  * @library /lib/testlibrary/jsr292 /lib/testlibrary/
  * @compile CatchExceptionTest.java
  * @run main/othervm -esa test.java.lang.invoke.MethodHandles.CatchExceptionTest
+ * @key intermittent
  */
 public class CatchExceptionTest {
     private static final List<Class<?>> ARGS_CLASSES;
--- a/jdk/test/java/lang/ref/OOMEInReferenceHandler.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/lang/ref/OOMEInReferenceHandler.java	Thu Mar 19 18:38:26 2015 -0700
@@ -27,6 +27,7 @@
  * @summary Verify that the reference handler does not die after an OOME allocating the InterruptedException object
  * @run main/othervm -XX:-UseGCOverheadLimit -Xmx24M -XX:-UseTLAB OOMEInReferenceHandler
  * @author peter.levart@gmail.com
+ * @key intermittent
  */
 
 import java.lang.ref.*;
--- a/jdk/test/java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java	Thu Mar 19 18:38:26 2015 -0700
@@ -42,6 +42,7 @@
  * @test
  * @bug 8007373
  * @summary jdk7 backward compatibility serialization problem
+ * @key intermittent
  */
 
 public class Inet6AddressSerializationTest {
--- a/jdk/test/java/net/SocketPermission/SocketPermissionTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/net/SocketPermission/SocketPermissionTest.java	Thu Mar 19 18:38:26 2015 -0700
@@ -27,6 +27,7 @@
  * @summary SocketPermission tests for legacy socket types
  * @library ../../../lib/testlibrary
  * @run testng/othervm/policy=policy SocketPermissionTest
+ * @key intermittent
  */
 import java.io.IOException;
 import java.net.DatagramPacket;
--- a/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java	Thu Mar 19 18:38:26 2015 -0700
@@ -25,6 +25,7 @@
  * @bug 4607272 6842687 6878369 6944810 7023403
  * @summary Unit test for AsynchronousSocketChannel
  * @run main Basic -skipSlowConnectTest
+ * @key intermittent
  */
 
 import java.nio.ByteBuffer;
--- a/jdk/test/java/nio/channels/Selector/Wakeup.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/nio/channels/Selector/Wakeup.java	Thu Mar 19 18:38:26 2015 -0700
@@ -25,6 +25,7 @@
  * @bug 6405995
  * @summary Unit test for selector wakeup and interruption
  * @library ..
+ * @key intermittent
  */
 
 import java.io.*;
--- a/jdk/test/java/nio/channels/ServerSocketChannel/AdaptServerSocket.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/nio/channels/ServerSocketChannel/AdaptServerSocket.java	Thu Mar 19 18:38:26 2015 -0700
@@ -23,6 +23,7 @@
 
 /* @test
  * @summary Unit test for server-socket-channel adaptors
+ * @key intermittent
  */
 
 import java.io.*;
--- a/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh	Thu Mar 19 18:38:26 2015 -0700
@@ -24,12 +24,12 @@
 #
 
 # @test
-# @bug 4673940
-# @bug 4930794
+# @bug 4673940 4930794
 # @summary Unit tests for inetd feature
 #
 # @build StateTest StateTestService EchoTest EchoService CloseTest Launcher Util
 # @run shell run_tests.sh
+# @key intermittent
 
 os=`uname -s`
 
--- a/jdk/test/java/nio/file/FileStore/Basic.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/nio/file/FileStore/Basic.java	Thu Mar 19 18:38:26 2015 -0700
@@ -25,6 +25,7 @@
  * @bug 4313887 6873621 6979526 7006126 7020517
  * @summary Unit test for java.nio.file.FileStore
  * @library ..
+ * @key intermittent
  */
 
 import java.nio.file.*;
--- a/jdk/test/java/nio/file/Files/InterruptCopy.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/nio/file/Files/InterruptCopy.java	Thu Mar 19 18:38:26 2015 -0700
@@ -25,6 +25,7 @@
  * @bug 4313887 6993267
  * @summary Unit test for Sun-specific ExtendedCopyOption.INTERRUPTIBLE option
  * @library ..
+ * @key intermittent
  */
 
 import java.nio.file.*;
--- a/jdk/test/java/rmi/activation/Activatable/checkActivateRef/CheckActivateRef.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/rmi/activation/Activatable/checkActivateRef/CheckActivateRef.java	Thu Mar 19 18:38:26 2015 -0700
@@ -39,6 +39,7 @@
  * @build TestLibrary RMID ActivateMe CheckActivateRef_Stub
  * @run main/othervm/policy=security.policy/timeout=240 -Djava.rmi.server.ignoreStubClasses=true CheckActivateRef
  * @run main/othervm/policy=security.policy/timeout=240 -Djava.rmi.server.ignoreStubClasses=false CheckActivateRef
+ * @key intermittent
  */
 
 import java.io.*;
--- a/jdk/test/java/rmi/registry/interfaceHash/InterfaceHash.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/rmi/registry/interfaceHash/InterfaceHash.java	Thu Mar 19 18:38:26 2015 -0700
@@ -38,6 +38,7 @@
  * @library ../../testlibrary
  * @build TestLibrary ReferenceRegistryStub
  * @run main/othervm InterfaceHash
+ * @key intermittent
  */
 
 import java.lang.reflect.Constructor;
--- a/jdk/test/java/rmi/server/UnicastRemoteObject/exportObject/GcDuringExport.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/java/rmi/server/UnicastRemoteObject/exportObject/GcDuringExport.java	Thu Mar 19 18:38:26 2015 -0700
@@ -31,6 +31,7 @@
  * @summary GC'ing objects whilst being exported to RMI should not cause exceptions
  * @author Neil Richards <neil.richards@ngmr.net>, <neil_richards@uk.ibm.com>
  * @run main/othervm GcDuringExport
+ * @key intermittent
  */
 
 import java.rmi.Remote;
--- a/jdk/test/javax/net/ssl/TLS/TestJSSE.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/jdk/test/javax/net/ssl/TLS/TestJSSE.java	Thu Mar 19 18:38:26 2015 -0700
@@ -70,6 +70,7 @@
  *        -DCLIENT_PROTOCOL=DEFAULT -Djdk.tls.client.protocols=TLSv1.2
  *        -DCIPHER=SSL_RSA_WITH_RC4_128_MD5
  *        TestJSSE javax.net.ssl.SSLHandshakeException
+ * @key intermittent
  *
  */