changeset 11649:85c0670dbf53

8075565: Define @intermittent jtreg keyword and mark intermittently failing jdk tests Reviewed-by: lancea
author darcy
date Thu, 19 Mar 2015 18:38:26 -0700
parents db4920d7dfd8
children 7969f7b6465e
files test/TEST.ROOT test/com/sun/jndi/ldap/LdapTimeoutTest.java test/java/lang/invoke/MethodHandles/CatchExceptionTest.java test/java/lang/ref/OOMEInReferenceHandler.java test/java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java test/java/net/SocketPermission/SocketPermissionTest.java test/java/nio/channels/AsynchronousSocketChannel/Basic.java test/java/nio/channels/Selector/Wakeup.java test/java/nio/channels/ServerSocketChannel/AdaptServerSocket.java test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh test/java/nio/file/FileStore/Basic.java test/java/nio/file/Files/InterruptCopy.java test/java/rmi/activation/Activatable/checkActivateRef/CheckActivateRef.java test/java/rmi/registry/interfaceHash/InterfaceHash.java test/java/rmi/server/UnicastRemoteObject/exportObject/GcDuringExport.java test/javax/net/ssl/TLS/TestJSSE.java
diffstat 16 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/TEST.ROOT	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/com/sun/jndi/ldap/LdapTimeoutTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/lang/ref/OOMEInReferenceHandler.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/net/Inet6Address/serialize/Inet6AddressSerializationTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/net/SocketPermission/SocketPermissionTest.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/nio/channels/AsynchronousSocketChannel/Basic.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/nio/channels/Selector/Wakeup.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/nio/channels/ServerSocketChannel/AdaptServerSocket.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/nio/file/FileStore/Basic.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/nio/file/Files/InterruptCopy.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/rmi/activation/Activatable/checkActivateRef/CheckActivateRef.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/rmi/registry/interfaceHash/InterfaceHash.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/java/rmi/server/UnicastRemoteObject/exportObject/GcDuringExport.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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/test/javax/net/ssl/TLS/TestJSSE.java	Thu Mar 19 16:14:23 2015 -0700
+++ b/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
  *
  */