From 86c109e149061e623f080fa7fe4da489cca6fd03 Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Wed, 29 Apr 2015 10:25:53 -0700 Subject: [PATCH] 8078334: Mark regression tests using randomness Reviewed-by: xuelei, alanb --- jdk/test/TEST.ROOT | 11 +++++++++-- .../security/ucrypto/CipherSignNotSupported.java | 1 + jdk/test/com/oracle/security/ucrypto/TestAES.java | 1 + .../com/oracle/security/ucrypto/TestCICOWithGCM.java | 1 + .../security/ucrypto/TestCICOWithGCMAndAAD.java | 1 + jdk/test/com/oracle/security/ucrypto/TestDigest.java | 1 + .../com/oracle/security/ucrypto/TestGCMKeyWrap.java | 1 + jdk/test/com/sun/crypto/provider/Cipher/AES/CICO.java | 1 + jdk/test/com/sun/crypto/provider/Cipher/AES/CTR.java | 1 + .../com/sun/crypto/provider/Cipher/AES/Padding.java | 1 + .../sun/crypto/provider/Cipher/AES/Test4513830.java | 1 + .../sun/crypto/provider/Cipher/AES/Test4517355.java | 1 + .../sun/crypto/provider/Cipher/AES/TestAESCipher.java | 1 + .../crypto/provider/Cipher/AES/TestCICOWithGCM.java | 1 + .../provider/Cipher/AES/TestCICOWithGCMAndAAD.java | 1 + .../provider/Cipher/AES/TestISO10126Padding.java | 1 + .../crypto/provider/Cipher/AES/TestNonexpanding.java | 1 + .../crypto/provider/Cipher/AES/TestSameBuffer.java | 1 + .../com/sun/crypto/provider/Cipher/DES/FlushBug.java | 1 + .../crypto/provider/Cipher/PBE/PBESealedObject.java | 1 + .../crypto/provider/Cipher/PBE/PBKDF2Translate.java | 1 + .../sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java | 1 + .../Cipher/PBE/TestCipherKeyWrapperPBEKey.java | 1 + .../com/sun/crypto/provider/Cipher/RSA/TestOAEP.java | 1 + .../com/sun/crypto/provider/Cipher/RSA/TestRSA.java | 1 + .../com/sun/crypto/provider/Mac/HmacSaltLengths.java | 1 + jdk/test/com/sun/crypto/provider/Mac/MacSameTest.java | 1 + .../management/ThreadMXBean/ThreadCpuTimeArray.java | 1 + jdk/test/java/io/DataInputStream/ReadUTF.java | 1 + jdk/test/java/io/File/GetXSpace.java | 1 + jdk/test/java/io/InputStream/TransferTo.java | 1 + .../java/io/PrintStream/OversynchronizedTest.java | 1 + .../CorruptedUTFConsumption.java | 1 + .../java/io/Serializable/longString/LongString.java | 1 + jdk/test/java/io/Serializable/proxy/Basic.java | 1 + .../java/io/Serializable/sanityCheck/SanityCheck.java | 1 + jdk/test/java/lang/Boolean/MakeBooleanComparable.java | 1 + jdk/test/java/lang/ClassLoader/Assert.java | 1 + jdk/test/java/lang/Compare.java | 1 + jdk/test/java/lang/Double/ParseHexFloatingPoint.java | 1 + jdk/test/java/lang/Enum/ValueOf.java | 1 + jdk/test/java/lang/HashCode.java | 1 + jdk/test/java/lang/Integer/BitTwiddle.java | 1 + jdk/test/java/lang/Long/BitTwiddle.java | 1 + jdk/test/java/lang/Math/CubeRootTests.java | 1 + jdk/test/java/lang/Math/HypotTests.java | 1 + jdk/test/java/lang/Math/IeeeRecommendedTests.java | 1 + jdk/test/java/lang/Math/Log1pTests.java | 1 + jdk/test/java/lang/Runtime/exec/WinCommand.java | 1 + jdk/test/java/lang/String/ContentEquals.java | 1 + jdk/test/java/lang/String/ICCBasher.java | 1 + jdk/test/java/lang/String/SBConstructor.java | 2 +- jdk/test/java/lang/String/Split.java | 1 + .../java/lang/StringBuffer/AppendCharSequence.java | 1 + jdk/test/java/lang/StringBuffer/AppendSB.java | 1 + .../java/lang/StringBuffer/AppendStringBuilder.java | 1 + jdk/test/java/lang/StringBuffer/Capacity.java | 1 + jdk/test/java/lang/StringBuffer/IndexOf.java | 1 + jdk/test/java/lang/StringBuffer/SBBasher.java | 2 +- jdk/test/java/lang/StringBuffer/Trim.java | 1 + .../java/lang/StringBuilder/AppendStringBuffer.java | 1 + jdk/test/java/lang/ToString.java | 1 + .../java/lang/instrument/SingleTransformerTest.java | 1 + .../java/lang/instrument/TransformMethodTest.java | 1 + .../lang/invoke/MethodHandles/CatchExceptionTest.java | 2 +- .../java/lang/management/BufferPoolMXBean/Basic.java | 1 + jdk/test/java/math/BigDecimal/StringConstructor.java | 1 + jdk/test/java/math/BigInteger/BigIntegerTest.java | 1 + jdk/test/java/math/BigInteger/ModPow65537.java | 1 + jdk/test/java/math/BigInteger/PrimeTest.java | 1 + .../java/math/BigInteger/SymmetricRangeTests.java | 1 + jdk/test/java/net/InetAddress/HashSpread.java | 1 + jdk/test/java/nio/Buffer/Chars.java | 1 + jdk/test/java/nio/MappedByteBuffer/Force.java | 1 + jdk/test/java/nio/MappedByteBuffer/ZeroMap.java | 1 + .../nio/channels/AsynchronousChannelGroup/Basic.java | 1 + .../channels/AsynchronousChannelGroup/Identity.java | 1 + .../channels/AsynchronousChannelGroup/Restart.java | 1 + .../nio/channels/AsynchronousFileChannel/Basic.java | 1 + .../nio/channels/AsynchronousFileChannel/Lock.java | 1 + .../AsynchronousFileChannel/LotsOfWrites.java | 1 + .../nio/channels/AsynchronousSocketChannel/Basic.java | 1 + .../AsynchronousSocketChannel/StressLoopback.java | 1 + jdk/test/java/nio/channels/Channels/Basic2.java | 1 + jdk/test/java/nio/channels/Channels/ShortWrite.java | 1 + .../channels/DatagramChannel/AdaptDatagramSocket.java | 1 + .../DatagramChannel/MulticastSendReceiveTests.java | 1 + .../nio/channels/DatagramChannel/Promiscuous.java | 1 + .../java/nio/channels/FileChannel/AtomicAppend.java | 1 + .../nio/channels/FileChannel/ClosedByInterrupt.java | 1 + jdk/test/java/nio/channels/FileChannel/MapTest.java | 1 + jdk/test/java/nio/channels/FileChannel/Position.java | 1 + jdk/test/java/nio/channels/FileChannel/Pread.java | 1 + jdk/test/java/nio/channels/FileChannel/Pwrite.java | 1 + jdk/test/java/nio/channels/FileChannel/Size.java | 1 + jdk/test/java/nio/channels/FileChannel/Transfer.java | 1 + jdk/test/java/nio/channels/FileChannel/Truncate.java | 1 + jdk/test/java/nio/channels/Pipe/PipeChannel.java | 3 ++- jdk/test/java/nio/channels/Pipe/ScatteringRead.java | 3 ++- jdk/test/java/nio/channels/Pipe/SelectPipe.java | 1 + jdk/test/java/nio/channels/Selector/SelectorTest.java | 1 + .../ServerSocketChannel/NonBlockingAccept.java | 1 + .../nio/channels/SocketChannel/CloseDuringWrite.java | 1 + .../java/nio/channels/SocketChannel/OutOfBand.java | 1 + .../java/nio/channels/SocketChannel/ShortWrite.java | 1 + .../java/nio/channels/SocketChannel/VectorIO.java | 1 + .../nio/channels/etc/AdaptorCloseAndInterrupt.java | 1 + jdk/test/java/nio/charset/coders/BashCache.java | 1 + jdk/test/java/nio/charset/coders/BashStreams.java | 1 + jdk/test/java/nio/file/Files/BytesAndLines.java | 1 + jdk/test/java/nio/file/Files/CopyAndMove.java | 1 + .../nio/file/Files/walkFileTree/SkipSiblings.java | 1 + .../java/nio/file/Files/walkFileTree/SkipSubtree.java | 1 + .../nio/file/Files/walkFileTree/TerminateWalk.java | 1 + jdk/test/java/nio/file/WatchService/LotsOfEvents.java | 1 + jdk/test/java/nio/file/WatchService/MayFlies.java | 1 + .../nio/file/WatchService/SensitivityModifier.java | 1 + .../file/attribute/AclFileAttributeView/Basic.java | 1 + jdk/test/java/nio/file/attribute/FileTime/Basic.java | 1 + .../attribute/UserDefinedFileAttributeView/Basic.java | 1 + jdk/test/java/security/MessageDigest/ByteBuffers.java | 1 + .../security/MessageDigest/TestDigestIOStream.java | 1 + .../java/security/MessageDigest/TestSameLength.java | 1 + .../java/security/MessageDigest/TestSameValue.java | 1 + jdk/test/java/security/Signature/ByteBuffers.java | 1 + jdk/test/java/security/Signature/NONEwithRSA.java | 1 + jdk/test/java/security/spec/EllipticCurveMatch.java | 1 + jdk/test/java/sql/JavatimeTest.java | 1 + .../java/text/Format/MessageFormat/Bug7003643.java | 1 + jdk/test/java/util/Arrays/ArrayObjectMethods.java | 1 + jdk/test/java/util/Arrays/CopyMethods.java | 1 + jdk/test/java/util/Arrays/Correct.java | 1 + jdk/test/java/util/Base64/TestBase64.java | 1 + jdk/test/java/util/BitSet/BSMethods.java | 1 + jdk/test/java/util/BitSet/ImportExport.java | 1 + jdk/test/java/util/BitSet/PreviousBits.java | 1 + jdk/test/java/util/Calendar/JavatimeTest.java | 1 + jdk/test/java/util/Collection/MOAT.java | 1 + jdk/test/java/util/Collections/AddAll.java | 1 + jdk/test/java/util/Collections/CheckedListBash.java | 1 + jdk/test/java/util/Collections/CheckedMapBash.java | 1 + jdk/test/java/util/Collections/CheckedSetBash.java | 1 + jdk/test/java/util/Collections/Disjoint.java | 1 + jdk/test/java/util/Collections/Rotate.java | 1 + jdk/test/java/util/EnumSet/EnumSetBash.java | 1 + jdk/test/java/util/HashSet/Serialization.java | 1 + jdk/test/java/util/IdentityHashMap/Capacity.java | 1 + jdk/test/java/util/List/LockStep.java | 1 + jdk/test/java/util/Map/LockStep.java | 1 + jdk/test/java/util/NavigableMap/LockStep.java | 1 + .../util/Properties/ConcurrentLoadAndStoreXML.java | 1 + jdk/test/java/util/Random/DistinctSeeds.java | 1 + jdk/test/java/util/Random/RandomStreamTest.java | 1 + jdk/test/java/util/Random/RandomTest.java | 1 + .../java/util/ResourceBundle/Control/StressTest.java | 1 + .../util/SplittableRandom/SplittableRandomTest.java | 1 + jdk/test/java/util/Timer/DelayOverflow.java | 1 + jdk/test/java/util/Timer/Purge.java | 1 + jdk/test/java/util/UUID/Serial.java | 1 + jdk/test/java/util/UUID/UUIDTest.java | 1 + jdk/test/java/util/WeakHashMap/GCDuringIteration.java | 1 + jdk/test/java/util/logging/CheckZombieLockTest.java | 1 + jdk/test/java/util/logging/DrainFindDeadlockTest.java | 1 + jdk/test/java/util/logging/FileHandlerLongLimit.java | 1 + jdk/test/java/util/logging/FileHandlerPath.java | 1 + .../util/logging/FileHandlerPatternExceptions.java | 1 + .../Configuration/ParentLoggerWithHandlerGC.java | 1 + jdk/test/java/util/logging/LoggingDeadlock.java | 4 ++++ jdk/test/java/util/logging/LoggingDeadlock2.java | 4 ++++ .../logging/TestLogConfigurationDeadLockWithConf.java | 1 + jdk/test/java/util/regex/RegExTest.java | 1 + jdk/test/java/util/zip/3GBZipFiles.sh | 1 + jdk/test/java/util/zip/DeInflate.java | 1 + jdk/test/java/util/zip/DeflateIn_InflateOut.java | 1 + jdk/test/java/util/zip/FlaterTest.java | 1 + jdk/test/java/util/zip/GZIP/Accordion.java | 1 + jdk/test/java/util/zip/GZIP/GZIPInputStreamRead.java | 1 + jdk/test/java/util/zip/InflateIn_DeflateOut.java | 1 + jdk/test/java/util/zip/InflaterBufferSize.java | 1 + jdk/test/java/util/zip/TimeChecksum.java | 1 + jdk/test/java/util/zip/TotalInOut.java | 1 + jdk/test/java/util/zip/ZipFile/Assortment.java | 1 + .../zip/ZipFile/ClearStaleZipFileInputStreams.java | 1 + jdk/test/java/util/zip/ZipFile/FinalizeZipFile.java | 1 + .../java/util/zip/ZipFile/MultiThreadedReadTest.java | 1 + jdk/test/java/util/zip/ZipFile/ReadZip.java | 1 + jdk/test/javax/crypto/Cipher/ByteBuffers.java | 1 + .../javax/crypto/CipherSpi/DirectBBRemaining.java | 1 + .../javax/crypto/CryptoPermission/AllPermCheck.java | 1 + .../javax/crypto/CryptoPermission/RC2PermCheck.java | 1 + .../crypto/JceSecurity/SunJCE_BC_LoadOrdering.java | 1 + jdk/test/javax/crypto/KeyGenerator/TestKGParity.java | 1 + jdk/test/javax/crypto/Mac/ByteBuffers.java | 1 + jdk/test/javax/crypto/NullCipher/TestNPE.java | 1 + .../javax/management/monitor/MultiMonitorTest.java | 1 + .../javax/management/mxbean/ThreadMXBeanTest.java | 1 + .../remote/mandatory/loading/MissingClassTest.java | 1 + .../management/timer/MissingNotificationTest.java | 1 + jdk/test/javax/net/ssl/SSLEngine/LargeBufs.java | 1 + jdk/test/javax/smartcardio/TestCommandAPDU.java | 1 + .../jmxremote/startstop/JMXStartStopTest.java | 1 + jdk/test/sun/misc/CopyMemory.java | 1 + .../sun/misc/FloatingDecimal/TestFloatingDecimal.java | 1 + jdk/test/sun/net/www/ParseUtil_4922813.java | 1 + jdk/test/sun/nio/cs/FindDecoderBugs.java | 1 + jdk/test/sun/nio/cs/FindEncoderBugs.java | 1 + jdk/test/sun/nio/cs/TestStringCoding.java | 1 + jdk/test/sun/nio/cs/TestStringCodingUTF8.java | 1 + jdk/test/sun/security/mscapi/PrngSlow.java | 1 + jdk/test/sun/security/pkcs11/Cipher/ReinitCipher.java | 1 + .../sun/security/pkcs11/Cipher/TestRSACipher.java | 1 + .../sun/security/pkcs11/Cipher/TestRawRSACipher.java | 1 + .../sun/security/pkcs11/Cipher/TestSymmCiphers.java | 3 ++- .../security/pkcs11/Cipher/TestSymmCiphersNoPad.java | 1 + .../sun/security/pkcs11/KeyGenerator/DESParity.java | 1 + jdk/test/sun/security/pkcs11/Mac/MacSameTest.java | 1 + jdk/test/sun/security/pkcs11/Mac/ReinitMac.java | 1 + .../security/pkcs11/MessageDigest/ByteBuffers.java | 1 + .../security/pkcs11/MessageDigest/ReinitDigest.java | 1 + .../security/pkcs11/MessageDigest/TestCloning.java | 1 + .../sun/security/pkcs11/Secmod/AddPrivateKey.java | 1 + jdk/test/sun/security/pkcs11/Secmod/Crypto.java | 1 + .../sun/security/pkcs11/Secmod/GetPrivateKey.java | 1 + jdk/test/sun/security/pkcs11/SecureRandom/Basic.java | 1 + .../sun/security/pkcs11/Signature/ByteBuffers.java | 1 + .../security/pkcs11/Signature/ReinitSignature.java | 1 + jdk/test/sun/security/pkcs11/Signature/TestDSA.java | 1 + .../security/pkcs11/Signature/TestDSAKeyLength.java | 1 + jdk/test/sun/security/pkcs11/ec/ReadPKCS12.java | 1 + jdk/test/sun/security/pkcs11/ec/TestCurves.java | 1 + jdk/test/sun/security/pkcs11/ec/TestECDSA.java | 1 + jdk/test/sun/security/pkcs11/rsa/KeyWrap.java | 1 + .../sun/security/pkcs11/rsa/TestKeyPairGenerator.java | 2 +- jdk/test/sun/security/pkcs11/rsa/TestSignatures.java | 1 + jdk/test/sun/security/provider/DSA/TestDSA.java | 1 + jdk/test/sun/security/provider/DSA/TestDSA2.java | 1 + .../provider/SeedGenerator/Priority_Inversion.java | 1 + jdk/test/sun/security/rsa/TestKeyPairGenerator.java | 1 + jdk/test/sun/security/rsa/TestSignatures.java | 1 + .../ssl/ClientHandshaker/LengthCheckTest.java | 1 + jdk/test/sun/security/ssl/GenSSLConfigs/main.java | 1 + 241 files changed, 258 insertions(+), 9 deletions(-) diff --git a/jdk/test/TEST.ROOT b/jdk/test/TEST.ROOT index cf9bdb246ff..76e0c407cba 100644 --- a/jdk/test/TEST.ROOT +++ b/jdk/test/TEST.ROOT @@ -1,8 +1,15 @@ # This file identifies the root of the test-suite hierarchy. # It also contains test-suite configuration information. -# The list of keywords supported in the entire test suite -keys=2d dnd i18n intermittent +# The list of keywords supported in the entire test suite. The +# "intermittent" keyword marks tests known to fail intermittently. +# The "randomness" keyword marks tests using randomness with test +# cases differing from run to run. (A test using a fixed random seed +# would not count as "randomness" by this definition.) Extra care +# should be taken to handle test failures of intermittent or +# randomness tests. + +keys=2d dnd i18n intermittent randomness # 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 diff --git a/jdk/test/com/oracle/security/ucrypto/CipherSignNotSupported.java b/jdk/test/com/oracle/security/ucrypto/CipherSignNotSupported.java index bf463227ed3..7e141b615b5 100644 --- a/jdk/test/com/oracle/security/ucrypto/CipherSignNotSupported.java +++ b/jdk/test/com/oracle/security/ucrypto/CipherSignNotSupported.java @@ -27,6 +27,7 @@ * @summary Make sure signing via encrypt and verifying via decrypt are not * supported by OracleUcrypto provider. * @author Anthony Scarpino + * @key randomness */ import java.util.Random; diff --git a/jdk/test/com/oracle/security/ucrypto/TestAES.java b/jdk/test/com/oracle/security/ucrypto/TestAES.java index 61594f381c0..4ed48659c86 100644 --- a/jdk/test/com/oracle/security/ucrypto/TestAES.java +++ b/jdk/test/com/oracle/security/ucrypto/TestAES.java @@ -25,6 +25,7 @@ * @test * @bug 7088989 8014374 * @summary Ensure the AES ciphers of OracleUcrypto provider works correctly + * @key randomness */ import java.io.*; diff --git a/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCM.java b/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCM.java index f12ee740a1a..3191fd8b321 100644 --- a/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCM.java +++ b/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCM.java @@ -26,6 +26,7 @@ * @bug 8014374 * @summary Test basic CipherInputStream/OutputStream func w/ GCM mode. * @author Valerie Peng + * @key randomness */ import java.security.*; diff --git a/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCMAndAAD.java b/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCMAndAAD.java index 782cea6145e..6075672dbcb 100644 --- a/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCMAndAAD.java +++ b/jdk/test/com/oracle/security/ucrypto/TestCICOWithGCMAndAAD.java @@ -26,6 +26,7 @@ * @bug 8014374 * @summary Test CipherInputStream/OutputStream func w/ GCM mode and AAD. * @author Valerie Peng + * @key randomness */ import java.io.*; diff --git a/jdk/test/com/oracle/security/ucrypto/TestDigest.java b/jdk/test/com/oracle/security/ucrypto/TestDigest.java index a9057ba3c87..5bd6f412f29 100644 --- a/jdk/test/com/oracle/security/ucrypto/TestDigest.java +++ b/jdk/test/com/oracle/security/ucrypto/TestDigest.java @@ -25,6 +25,7 @@ * @test * @bug 7088989 * @summary Ensure the various message digests works correctly + * @key randomness */ import java.io.*; diff --git a/jdk/test/com/oracle/security/ucrypto/TestGCMKeyWrap.java b/jdk/test/com/oracle/security/ucrypto/TestGCMKeyWrap.java index 89d5e02efbd..c64367ab46e 100644 --- a/jdk/test/com/oracle/security/ucrypto/TestGCMKeyWrap.java +++ b/jdk/test/com/oracle/security/ucrypto/TestGCMKeyWrap.java @@ -25,6 +25,7 @@ * @test * @bug 8014374 * @summary Ensure key wrap/unwrap works using AES/GCM/NoPadding + * @key randomness */ import java.io.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/CICO.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/CICO.java index 811724be8ce..1bb9f0d061f 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/CICO.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/CICO.java @@ -44,6 +44,7 @@ import javax.crypto.spec.IvParameterSpec; * @summary Test AES ciphers with different modes and padding schemes (ECB mode * doesn't use IV). The test tries 3 different read methods of * CipherInputStream. + * @key randomness */ public class CICO { private static final String ALGORITHM = "aEs"; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/CTR.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/CTR.java index 808f3e26916..d569965bca1 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/CTR.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/CTR.java @@ -43,6 +43,7 @@ import javax.crypto.spec.IvParameterSpec; * @bug 8043836 * @summary Test AES ciphers with 4 different modes with NoPadding. Check if * data before encryption and after decryption is the same. + * @key randomness */ public class CTR { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/Padding.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/Padding.java index 6023ec7cc67..9185efdf02c 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/Padding.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/Padding.java @@ -42,6 +42,7 @@ import javax.crypto.spec.IvParameterSpec; * @summary Test AES ciphers with different modes and padding schemes (ECB mode * doesn't use IV). The test tries 3 different read methods of * CipherInputStream. + * @key randomness */ public class Padding { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4513830.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4513830.java index d3ecc9e27bf..c421b169c4a 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4513830.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4513830.java @@ -27,6 +27,7 @@ * @summary Verify the output size returned by AES cipher.getOutputSize * method in DECRYPT mode does not add extra bytes for padding * @author Valerie Peng + * @key randomness */ import java.io.PrintStream; import java.security.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4517355.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4517355.java index a4716482918..7ea6b8316f8 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4517355.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/Test4517355.java @@ -27,6 +27,7 @@ * @summary Verify that AES cipher.doFinal method does NOT need more * than necessary bytes in decrypt mode * @author Valerie Peng + * @key randomness */ import java.io.PrintStream; import java.security.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCipher.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCipher.java index 190b58630cc..0ea8d01bc92 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCipher.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCipher.java @@ -43,6 +43,7 @@ import javax.crypto.spec.IvParameterSpec; * doesn't use IV). * @author Liwen Wang * @author Parag Salvi + * @key randomness */ public class TestAESCipher { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCM.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCM.java index 8fec041d0a9..1d5e5abbb62 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCM.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCM.java @@ -29,6 +29,7 @@ * @run main TestCICOWithGCM * @summary Test CipherInputStream/OutputStream with AES GCM mode. * @author Valerie Peng + * @key randomness */ import java.security.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCMAndAAD.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCMAndAAD.java index 816f764f9ba..edc43d61ae3 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCMAndAAD.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCMAndAAD.java @@ -29,6 +29,7 @@ * @run main TestCICOWithGCMAndAAD * @summary Test CipherInputStream/OutputStream with AES GCM mode with AAD. * @author Valerie Peng + * @key randomness */ import java.io.*; import java.security.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestISO10126Padding.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestISO10126Padding.java index edb62cb2b1f..926320393dd 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestISO10126Padding.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestISO10126Padding.java @@ -26,6 +26,7 @@ * @bug 4921443 * @summary Ensure ISO10126Padding works correctly. * @author Valerie Peng + * @key randomness */ import java.util.Arrays; import java.security.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestNonexpanding.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestNonexpanding.java index 200d38b547b..3ed865f5a98 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestNonexpanding.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestNonexpanding.java @@ -40,6 +40,7 @@ import javax.crypto.spec.GCMParameterSpec; * @bug 8043836 * @summary Test AES encryption with no padding. Expect the original data length * is the same as the encrypted data. + * @key randomness */ public class TestNonexpanding { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestSameBuffer.java b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestSameBuffer.java index bbba223a7c4..f4cc9276bbc 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/AES/TestSameBuffer.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/AES/TestSameBuffer.java @@ -42,6 +42,7 @@ import javax.crypto.spec.IvParameterSpec; * @summary Test AES ciphers with different modes and padding schemes (ECB mode * doesn't use IV). The test tries 3 different read methods of * CipherInputStream. + * @key randomness */ public class TestSameBuffer { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/DES/FlushBug.java b/jdk/test/com/sun/crypto/provider/Cipher/DES/FlushBug.java index ab2dde8b434..bb03a885825 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/DES/FlushBug.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/DES/FlushBug.java @@ -26,6 +26,7 @@ * @bug 0000000 * @summary FlushBug * @author Jan Luehe + * @key randomness */ import java.io.*; import java.security.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBESealedObject.java b/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBESealedObject.java index 2420b9bc4a3..f97acd547a8 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBESealedObject.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBESealedObject.java @@ -45,6 +45,7 @@ import javax.crypto.spec.PBEParameterSpec; * @author Bill Situ * @author Alexander Fomin * @run main PBESealedObject + * @key randomness */ public class PBESealedObject { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBKDF2Translate.java b/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBKDF2Translate.java index 36681591e46..d9ccf5cf7c1 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBKDF2Translate.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBKDF2Translate.java @@ -37,6 +37,7 @@ import javax.crypto.spec.PBEKeySpec; * @summary Verify if the SecretKeyFactory.translateKey() method works * @author Alexander Fomin * @run main PBKDF2Translate + * @key randomness */ public class PBKDF2Translate { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java b/jdk/test/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java index 4995a9a8b8e..00ff89ade69 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java @@ -27,6 +27,7 @@ * @summary basic test for PBEWithSHA1AndDESede, PBEWithSHA1AndRC2_40/128 * and PBEWithSHA1AndRC4_40/128 * @author Valerie Peng + * @key randomness */ import java.io.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/PBE/TestCipherKeyWrapperPBEKey.java b/jdk/test/com/sun/crypto/provider/Cipher/PBE/TestCipherKeyWrapperPBEKey.java index cc237d0549d..dd767ba1fed 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/PBE/TestCipherKeyWrapperPBEKey.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/PBE/TestCipherKeyWrapperPBEKey.java @@ -45,6 +45,7 @@ import javax.crypto.spec.PBEParameterSpec; * @author Bill Situ * @author Yun Ke * @run main TestCipherKeyWrapperPBEKey + * @key randomness */ public class TestCipherKeyWrapperPBEKey { diff --git a/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestOAEP.java b/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestOAEP.java index 55b501ebf36..b35b8a2ef32 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestOAEP.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestOAEP.java @@ -26,6 +26,7 @@ * @bug 4894151 * @summary encryption/decryption test for OAEP * @author Andreas Sterbenz + * @key randomness */ import java.util.*; diff --git a/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestRSA.java b/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestRSA.java index b88a5dc524b..1e4c6ed10b1 100644 --- a/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestRSA.java +++ b/jdk/test/com/sun/crypto/provider/Cipher/RSA/TestRSA.java @@ -26,6 +26,7 @@ * @bug 4853306 * @summary Test RSA Cipher implementation * @author Andreas Sterbenz + * @key randomness */ import java.io.*; diff --git a/jdk/test/com/sun/crypto/provider/Mac/HmacSaltLengths.java b/jdk/test/com/sun/crypto/provider/Mac/HmacSaltLengths.java index 17447398403..38d4da44a4a 100644 --- a/jdk/test/com/sun/crypto/provider/Mac/HmacSaltLengths.java +++ b/jdk/test/com/sun/crypto/provider/Mac/HmacSaltLengths.java @@ -27,6 +27,7 @@ * @summary ensures various salt lengths can be used for * HmacPBESHA1. * @author Valerie Peng + * @key randomness */ import java.io.*; diff --git a/jdk/test/com/sun/crypto/provider/Mac/MacSameTest.java b/jdk/test/com/sun/crypto/provider/Mac/MacSameTest.java index 8d97f1a6a88..598ea6a910c 100644 --- a/jdk/test/com/sun/crypto/provider/Mac/MacSameTest.java +++ b/jdk/test/com/sun/crypto/provider/Mac/MacSameTest.java @@ -35,6 +35,7 @@ import javax.crypto.spec.SecretKeySpec; * @author Yu-Ching Valerie Peng, Bill Situ, Alexander Fomin * @build Utils * @run main MacSameTest + * @key randomness */ public class MacSameTest implements MacTest { diff --git a/jdk/test/com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java b/jdk/test/com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java index 67dea226bd1..b364312f0bd 100644 --- a/jdk/test/com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java +++ b/jdk/test/com/sun/management/ThreadMXBean/ThreadCpuTimeArray.java @@ -27,6 +27,7 @@ * @summary Basic test of ThreadMXBean.getThreadCpuTime(long[]) and * getThreadUserTime(long[]). * @author Paul Hohensee + * @key randomness */ import java.lang.management.*; diff --git a/jdk/test/java/io/DataInputStream/ReadUTF.java b/jdk/test/java/io/DataInputStream/ReadUTF.java index 16f346499e1..02c0f75efd4 100644 --- a/jdk/test/java/io/DataInputStream/ReadUTF.java +++ b/jdk/test/java/io/DataInputStream/ReadUTF.java @@ -24,6 +24,7 @@ /* @test * @bug 4806007 * @summary Checks for vague exceptions from writeUTF/readUTF + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/io/File/GetXSpace.java b/jdk/test/java/io/File/GetXSpace.java index e9aed50bbed..726a205d295 100644 --- a/jdk/test/java/io/File/GetXSpace.java +++ b/jdk/test/java/io/File/GetXSpace.java @@ -28,6 +28,7 @@ * @run build GetXSpace * @run shell GetXSpace.sh * @summary Basic functionality of File.get-X-Space methods. + * @key randomness */ import java.io.BufferedReader; diff --git a/jdk/test/java/io/InputStream/TransferTo.java b/jdk/test/java/io/InputStream/TransferTo.java index a32df7a62a3..50d8569caf9 100644 --- a/jdk/test/java/io/InputStream/TransferTo.java +++ b/jdk/test/java/io/InputStream/TransferTo.java @@ -37,6 +37,7 @@ import static java.lang.String.format; * @bug 8066867 * @summary tests whether java.io.InputStream.transferTo conforms to its * contract defined in the javadoc + * @key randomness */ public class TransferTo { diff --git a/jdk/test/java/io/PrintStream/OversynchronizedTest.java b/jdk/test/java/io/PrintStream/OversynchronizedTest.java index 1f687f8cab6..c5ac2bb2b80 100644 --- a/jdk/test/java/io/PrintStream/OversynchronizedTest.java +++ b/jdk/test/java/io/PrintStream/OversynchronizedTest.java @@ -24,6 +24,7 @@ /* @test @bug 4905777 @summary PrintStream.println(Object) oversynchronized, can deadlock + @key randomness */ import java.io.PrintStream; diff --git a/jdk/test/java/io/Serializable/corruptedUTFConsumption/CorruptedUTFConsumption.java b/jdk/test/java/io/Serializable/corruptedUTFConsumption/CorruptedUTFConsumption.java index 0071b8d3acf..3cae0268be3 100644 --- a/jdk/test/java/io/Serializable/corruptedUTFConsumption/CorruptedUTFConsumption.java +++ b/jdk/test/java/io/Serializable/corruptedUTFConsumption/CorruptedUTFConsumption.java @@ -28,6 +28,7 @@ * ObjectInputStream consumes at most the expected number of utf * bytes, even if the last byte(s) of the utf string indicate that the * string overflows its expected length. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/io/Serializable/longString/LongString.java b/jdk/test/java/io/Serializable/longString/LongString.java index 3e1b4c3129f..6fbf3e340c8 100644 --- a/jdk/test/java/io/Serializable/longString/LongString.java +++ b/jdk/test/java/io/Serializable/longString/LongString.java @@ -25,6 +25,7 @@ * @bug 4217676 * @summary Ensure that object streams support serialization of long strings * (strings whose UTF representation > 64k in length) + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/io/Serializable/proxy/Basic.java b/jdk/test/java/io/Serializable/proxy/Basic.java index 402f797b139..3519334710b 100644 --- a/jdk/test/java/io/Serializable/proxy/Basic.java +++ b/jdk/test/java/io/Serializable/proxy/Basic.java @@ -23,6 +23,7 @@ /* @test * @summary Verifies basic correct functioning of proxy serialization. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/io/Serializable/sanityCheck/SanityCheck.java b/jdk/test/java/io/Serializable/sanityCheck/SanityCheck.java index 486f55b547b..e2659868fe8 100644 --- a/jdk/test/java/io/Serializable/sanityCheck/SanityCheck.java +++ b/jdk/test/java/io/Serializable/sanityCheck/SanityCheck.java @@ -24,6 +24,7 @@ /* @test * @summary Basic sanity check to test if default (de)serialization is * transmitting values properly. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/lang/Boolean/MakeBooleanComparable.java b/jdk/test/java/lang/Boolean/MakeBooleanComparable.java index 900900a2c5d..81478209c85 100644 --- a/jdk/test/java/lang/Boolean/MakeBooleanComparable.java +++ b/jdk/test/java/lang/Boolean/MakeBooleanComparable.java @@ -26,6 +26,7 @@ * @bug 4329937 * @summary Basic test for making Boolean implement Comparable * @author Josh Bloch + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/lang/ClassLoader/Assert.java b/jdk/test/java/lang/ClassLoader/Assert.java index 2abe45ac156..fb2376d45d4 100644 --- a/jdk/test/java/lang/ClassLoader/Assert.java +++ b/jdk/test/java/lang/ClassLoader/Assert.java @@ -28,6 +28,7 @@ * @run main/othervm Assert * @summary Test the assertion facility * @author Mike McCloskey + * @key randomness */ import package1.*; diff --git a/jdk/test/java/lang/Compare.java b/jdk/test/java/lang/Compare.java index c037f76fd3c..eba0ae93c1e 100644 --- a/jdk/test/java/lang/Compare.java +++ b/jdk/test/java/lang/Compare.java @@ -25,6 +25,7 @@ * @test * @bug 6582946 * @summary Test the primitive wrappers compare and compareTo methods + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/Double/ParseHexFloatingPoint.java b/jdk/test/java/lang/Double/ParseHexFloatingPoint.java index b99ae5de1c1..14ac2f0f567 100644 --- a/jdk/test/java/lang/Double/ParseHexFloatingPoint.java +++ b/jdk/test/java/lang/Double/ParseHexFloatingPoint.java @@ -26,6 +26,7 @@ * @bug 4826774 * @summary Numerical tests for hexadecimal inputs to parseDouble, parseFloat * @author Joseph D. Darcy + * @key randomness */ diff --git a/jdk/test/java/lang/Enum/ValueOf.java b/jdk/test/java/lang/Enum/ValueOf.java index d01b9083ae5..711819653df 100644 --- a/jdk/test/java/lang/Enum/ValueOf.java +++ b/jdk/test/java/lang/Enum/ValueOf.java @@ -29,6 +29,7 @@ * * @compile ValueOf.java * @run main ValueOf + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/lang/HashCode.java b/jdk/test/java/lang/HashCode.java index d113cb0d0fd..5f1d03f491a 100644 --- a/jdk/test/java/lang/HashCode.java +++ b/jdk/test/java/lang/HashCode.java @@ -25,6 +25,7 @@ * @test * @bug 4245470 7088913 * @summary Test the primitive wrappers hashCode() + * @key randomness */ import java.util.Objects; diff --git a/jdk/test/java/lang/Integer/BitTwiddle.java b/jdk/test/java/lang/Integer/BitTwiddle.java index 6926facb5a4..8796c0769ea 100644 --- a/jdk/test/java/lang/Integer/BitTwiddle.java +++ b/jdk/test/java/lang/Integer/BitTwiddle.java @@ -26,6 +26,7 @@ * @bug 4495754 * @summary Basic test for int bit twiddling * @author Josh Bloch + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/Long/BitTwiddle.java b/jdk/test/java/lang/Long/BitTwiddle.java index 5a34ccec3ec..0132ea463dc 100644 --- a/jdk/test/java/lang/Long/BitTwiddle.java +++ b/jdk/test/java/lang/Long/BitTwiddle.java @@ -26,6 +26,7 @@ * @bug 4495754 * @summary Basic test for long bit twiddling * @author Josh Bloch + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/Math/CubeRootTests.java b/jdk/test/java/lang/Math/CubeRootTests.java index 116a7f4d4a7..8ce79d33d3a 100644 --- a/jdk/test/java/lang/Math/CubeRootTests.java +++ b/jdk/test/java/lang/Math/CubeRootTests.java @@ -26,6 +26,7 @@ * @bug 4347132 4939441 * @summary Tests for {Math, StrictMath}.cbrt * @author Joseph D. Darcy + * @key randomness */ public class CubeRootTests { diff --git a/jdk/test/java/lang/Math/HypotTests.java b/jdk/test/java/lang/Math/HypotTests.java index 1c1ff8c4d5d..afcec4d8642 100644 --- a/jdk/test/java/lang/Math/HypotTests.java +++ b/jdk/test/java/lang/Math/HypotTests.java @@ -26,6 +26,7 @@ * @bug 4851638 4939441 * @summary Tests for {Math, StrictMath}.hypot * @author Joseph D. Darcy + * @key randomness */ public class HypotTests { diff --git a/jdk/test/java/lang/Math/IeeeRecommendedTests.java b/jdk/test/java/lang/Math/IeeeRecommendedTests.java index d1d28245850..710bfa339a8 100644 --- a/jdk/test/java/lang/Math/IeeeRecommendedTests.java +++ b/jdk/test/java/lang/Math/IeeeRecommendedTests.java @@ -26,6 +26,7 @@ * @bug 4860891 4826732 4780454 4939441 4826652 * @summary Tests for IEEE 754[R] recommended functions and similar methods * @author Joseph D. Darcy + * @key randomness */ public class IeeeRecommendedTests { diff --git a/jdk/test/java/lang/Math/Log1pTests.java b/jdk/test/java/lang/Math/Log1pTests.java index eb4e8800224..191f5433bd6 100644 --- a/jdk/test/java/lang/Math/Log1pTests.java +++ b/jdk/test/java/lang/Math/Log1pTests.java @@ -26,6 +26,7 @@ * @bug 4851638 4939441 * @summary Tests for {Math, StrictMath}.log1p * @author Joseph D. Darcy + * @key randomness */ public class Log1pTests { diff --git a/jdk/test/java/lang/Runtime/exec/WinCommand.java b/jdk/test/java/lang/Runtime/exec/WinCommand.java index 1504c891eab..0d4c256393a 100644 --- a/jdk/test/java/lang/Runtime/exec/WinCommand.java +++ b/jdk/test/java/lang/Runtime/exec/WinCommand.java @@ -25,6 +25,7 @@ * @bug 5006520 * @summary Check many different ways to run Windows programs * @author Martin Buchholz + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/lang/String/ContentEquals.java b/jdk/test/java/lang/String/ContentEquals.java index 2231b71d0c7..eb46f58abab 100644 --- a/jdk/test/java/lang/String/ContentEquals.java +++ b/jdk/test/java/lang/String/ContentEquals.java @@ -25,6 +25,7 @@ * @test * @bug 4242309 4982981 * @summary Test equals and contentEquals in String + * @key randomness */ import java.util.Random; import java.nio.CharBuffer; diff --git a/jdk/test/java/lang/String/ICCBasher.java b/jdk/test/java/lang/String/ICCBasher.java index ed9a780629c..33cb1a2d7ee 100644 --- a/jdk/test/java/lang/String/ICCBasher.java +++ b/jdk/test/java/lang/String/ICCBasher.java @@ -25,6 +25,7 @@ * @test * @bug 4152868 * @summary test Case Insensitive Comparator in String + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/lang/String/SBConstructor.java b/jdk/test/java/lang/String/SBConstructor.java index 7566fea4379..0b38ed0c54e 100644 --- a/jdk/test/java/lang/String/SBConstructor.java +++ b/jdk/test/java/lang/String/SBConstructor.java @@ -25,7 +25,7 @@ * @test * @bug 4915187 * @summary Test java.lang.String constructor that takes StringBuilder - * + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/lang/String/Split.java b/jdk/test/java/lang/String/Split.java index a70213a61ca..d95a26a56bc 100644 --- a/jdk/test/java/lang/String/Split.java +++ b/jdk/test/java/lang/String/Split.java @@ -25,6 +25,7 @@ * @test * @bug 6840246 6559590 * @summary test String.split() + * @key randomness */ import java.util.Arrays; import java.util.Random; diff --git a/jdk/test/java/lang/StringBuffer/AppendCharSequence.java b/jdk/test/java/lang/StringBuffer/AppendCharSequence.java index b7738ac68d1..e6012ca2718 100644 --- a/jdk/test/java/lang/StringBuffer/AppendCharSequence.java +++ b/jdk/test/java/lang/StringBuffer/AppendCharSequence.java @@ -24,6 +24,7 @@ /* @test * @bug 4812591 4705328 5019111 * @summary Test append and insert methods with CharSequence params + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/StringBuffer/AppendSB.java b/jdk/test/java/lang/StringBuffer/AppendSB.java index f1bcc475074..2ecc37903a1 100644 --- a/jdk/test/java/lang/StringBuffer/AppendSB.java +++ b/jdk/test/java/lang/StringBuffer/AppendSB.java @@ -24,6 +24,7 @@ /* @test * @bug 4144267 * @summary Test StringBuffer.append(StringBuffer); + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/StringBuffer/AppendStringBuilder.java b/jdk/test/java/lang/StringBuffer/AppendStringBuilder.java index a27f6a12a28..fed81ac253b 100644 --- a/jdk/test/java/lang/StringBuffer/AppendStringBuilder.java +++ b/jdk/test/java/lang/StringBuffer/AppendStringBuilder.java @@ -23,6 +23,7 @@ /* @test * @bug 6206780 * @summary Test StringBuffer.append(StringBuilder); + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/StringBuffer/Capacity.java b/jdk/test/java/lang/StringBuffer/Capacity.java index 4d2bc83445a..937ad8f9a76 100644 --- a/jdk/test/java/lang/StringBuffer/Capacity.java +++ b/jdk/test/java/lang/StringBuffer/Capacity.java @@ -25,6 +25,7 @@ * @test * @bug 6952330 * @summary Test StringBuffer/StringBuilder capacity handling. + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/StringBuffer/IndexOf.java b/jdk/test/java/lang/StringBuffer/IndexOf.java index f5741d80ed8..aceb25265b7 100644 --- a/jdk/test/java/lang/StringBuffer/IndexOf.java +++ b/jdk/test/java/lang/StringBuffer/IndexOf.java @@ -24,6 +24,7 @@ /* @test * @bug 4162796 4162796 * @summary Test indexOf and lastIndexOf + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/StringBuffer/SBBasher.java b/jdk/test/java/lang/StringBuffer/SBBasher.java index 9155f3b99c0..4cc6be46fb0 100644 --- a/jdk/test/java/lang/StringBuffer/SBBasher.java +++ b/jdk/test/java/lang/StringBuffer/SBBasher.java @@ -25,7 +25,7 @@ * @test * @bug 4120694 * @summary Test new methods in StringBuffer - * + * @key randomness */ import java.lang.*; diff --git a/jdk/test/java/lang/StringBuffer/Trim.java b/jdk/test/java/lang/StringBuffer/Trim.java index 3d1cc6acd91..d44720d9d45 100644 --- a/jdk/test/java/lang/StringBuffer/Trim.java +++ b/jdk/test/java/lang/StringBuffer/Trim.java @@ -24,6 +24,7 @@ /* @test * @bug 4546734 5007612 * @summary Test StringBuffer.trimToSize + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/StringBuilder/AppendStringBuffer.java b/jdk/test/java/lang/StringBuilder/AppendStringBuffer.java index a54cf0a0d29..3cb1de55a84 100644 --- a/jdk/test/java/lang/StringBuilder/AppendStringBuffer.java +++ b/jdk/test/java/lang/StringBuilder/AppendStringBuffer.java @@ -24,6 +24,7 @@ /* @test * @bug 6206780 * @summary Test StringBuilder.append(StringBuffer); + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/ToString.java b/jdk/test/java/lang/ToString.java index 3d90dd0c69c..181a4ec44d6 100644 --- a/jdk/test/java/lang/ToString.java +++ b/jdk/test/java/lang/ToString.java @@ -25,6 +25,7 @@ * @test * @bug 4031762 * @summary Test the primitive wrappers static toString() + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/lang/instrument/SingleTransformerTest.java b/jdk/test/java/lang/instrument/SingleTransformerTest.java index bcbf04d8a97..d04adf1b266 100644 --- a/jdk/test/java/lang/instrument/SingleTransformerTest.java +++ b/jdk/test/java/lang/instrument/SingleTransformerTest.java @@ -30,6 +30,7 @@ * @run build SingleTransformerTest * @run shell MakeJAR.sh redefineAgent * @run main/othervm -javaagent:redefineAgent.jar SingleTransformerTest SingleTransformerTest + * @key randomness */ public class SingleTransformerTest diff --git a/jdk/test/java/lang/instrument/TransformMethodTest.java b/jdk/test/java/lang/instrument/TransformMethodTest.java index 38e48d5288f..610729f1185 100644 --- a/jdk/test/java/lang/instrument/TransformMethodTest.java +++ b/jdk/test/java/lang/instrument/TransformMethodTest.java @@ -30,6 +30,7 @@ * @run build TransformMethodTest * @run shell MakeJAR.sh redefineAgent * @run main/othervm -javaagent:redefineAgent.jar TransformMethodTest TransformMethodTest + * @key randomness */ import java.lang.instrument.*; diff --git a/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java b/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java index 44e11e0985d..1d3cbeb64d1 100644 --- a/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java +++ b/jdk/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java @@ -41,7 +41,7 @@ import java.util.concurrent.TimeUnit; * @library /lib/testlibrary/jsr292 /lib/testlibrary/ * @compile CatchExceptionTest.java * @run main/othervm -esa test.java.lang.invoke.MethodHandles.CatchExceptionTest - * @key intermittent + * @key intermittent randomness */ public class CatchExceptionTest { private static final List> ARGS_CLASSES; diff --git a/jdk/test/java/lang/management/BufferPoolMXBean/Basic.java b/jdk/test/java/lang/management/BufferPoolMXBean/Basic.java index 6bdd96a2fa8..180551fdd26 100644 --- a/jdk/test/java/lang/management/BufferPoolMXBean/Basic.java +++ b/jdk/test/java/lang/management/BufferPoolMXBean/Basic.java @@ -25,6 +25,7 @@ * @bug 6606598 7024172 * @summary Unit test for java.lang.management.BufferPoolMXBean * @run main/othervm Basic + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/math/BigDecimal/StringConstructor.java b/jdk/test/java/math/BigDecimal/StringConstructor.java index c8051eb98a5..08c88a2672c 100644 --- a/jdk/test/java/math/BigDecimal/StringConstructor.java +++ b/jdk/test/java/math/BigDecimal/StringConstructor.java @@ -26,6 +26,7 @@ * @library .. * @bug 4103117 4331084 4488017 4490929 6255285 6268365 8074460 * @summary Tests the BigDecimal string constructor (use -Dseed=X to set PRNG seed). + * @key randomness */ import java.math.*; diff --git a/jdk/test/java/math/BigInteger/BigIntegerTest.java b/jdk/test/java/math/BigInteger/BigIntegerTest.java index e1b36c0812b..8bab07e63c0 100644 --- a/jdk/test/java/math/BigInteger/BigIntegerTest.java +++ b/jdk/test/java/math/BigInteger/BigIntegerTest.java @@ -28,6 +28,7 @@ * @summary tests methods in BigInteger (use -Dseed=X to set PRNG seed) * @run main/timeout=400 BigIntegerTest * @author madbot + * @key randomness */ import java.io.File; diff --git a/jdk/test/java/math/BigInteger/ModPow65537.java b/jdk/test/java/math/BigInteger/ModPow65537.java index f8e4a5422d1..e7d2b17c6bf 100644 --- a/jdk/test/java/math/BigInteger/ModPow65537.java +++ b/jdk/test/java/math/BigInteger/ModPow65537.java @@ -27,6 +27,7 @@ * @bug 4891312 8074460 * @summary verify that modPow() not broken by the special case for 65537 (use -Dseed=X to set PRNG seed) * @author Andreas Sterbenz + * @key randomness */ import java.math.BigInteger; diff --git a/jdk/test/java/math/BigInteger/PrimeTest.java b/jdk/test/java/math/BigInteger/PrimeTest.java index fae4fd7979b..62adf777cdf 100644 --- a/jdk/test/java/math/BigInteger/PrimeTest.java +++ b/jdk/test/java/math/BigInteger/PrimeTest.java @@ -29,6 +29,7 @@ * @bug 8026236 8074460 * @summary test primality verification methods in BigInteger (use -Dseed=X to set PRNG seed) * @author bpb + * @key randomness */ import java.math.BigInteger; import java.util.BitSet; diff --git a/jdk/test/java/math/BigInteger/SymmetricRangeTests.java b/jdk/test/java/math/BigInteger/SymmetricRangeTests.java index d3cb73cbef2..25e39e49636 100644 --- a/jdk/test/java/math/BigInteger/SymmetricRangeTests.java +++ b/jdk/test/java/math/BigInteger/SymmetricRangeTests.java @@ -29,6 +29,7 @@ * @bug 6910473 8021204 8021203 9005933 8074460 * @summary Test range of BigInteger values (use -Dseed=X to set PRNG seed) * @author Dmitry Nadezhin + * @key randomness */ import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; diff --git a/jdk/test/java/net/InetAddress/HashSpread.java b/jdk/test/java/net/InetAddress/HashSpread.java index 17f59438470..990eb531bd7 100644 --- a/jdk/test/java/net/InetAddress/HashSpread.java +++ b/jdk/test/java/net/InetAddress/HashSpread.java @@ -26,6 +26,7 @@ * @bug 4687909 * @summary Check Inet6Address.hashCode returns a reasonable spread of hash * codes. + * @key randomness */ import java.net.InetAddress; import java.net.UnknownHostException; diff --git a/jdk/test/java/nio/Buffer/Chars.java b/jdk/test/java/nio/Buffer/Chars.java index ef2df66ac14..01b53ea2405 100644 --- a/jdk/test/java/nio/Buffer/Chars.java +++ b/jdk/test/java/nio/Buffer/Chars.java @@ -26,6 +26,7 @@ * @bug 8014854 * @summary Exercises CharBuffer#chars on each of the CharBuffer types * @run testng Chars + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/MappedByteBuffer/Force.java b/jdk/test/java/nio/MappedByteBuffer/Force.java index 52717642c94..f9ae0810bce 100644 --- a/jdk/test/java/nio/MappedByteBuffer/Force.java +++ b/jdk/test/java/nio/MappedByteBuffer/Force.java @@ -25,6 +25,7 @@ * @bug 4625907 * @summary Testing force() * @run main/othervm Force + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/MappedByteBuffer/ZeroMap.java b/jdk/test/java/nio/MappedByteBuffer/ZeroMap.java index 7c00bf72750..f28e1eb8963 100644 --- a/jdk/test/java/nio/MappedByteBuffer/ZeroMap.java +++ b/jdk/test/java/nio/MappedByteBuffer/ZeroMap.java @@ -25,6 +25,7 @@ * @bug 4802340 * @summary Testing force(), load() isLoaded() of zero len MBB * @run main/othervm ZeroMap + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/AsynchronousChannelGroup/Basic.java b/jdk/test/java/nio/channels/AsynchronousChannelGroup/Basic.java index 1c5da1309b3..0a62be8fc57 100644 --- a/jdk/test/java/nio/channels/AsynchronousChannelGroup/Basic.java +++ b/jdk/test/java/nio/channels/AsynchronousChannelGroup/Basic.java @@ -24,6 +24,7 @@ /* @test * @bug 4607272 * @summary Unit test for AsynchronousChannelGroup + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/channels/AsynchronousChannelGroup/Identity.java b/jdk/test/java/nio/channels/AsynchronousChannelGroup/Identity.java index 366449bfc32..654d5f92183 100644 --- a/jdk/test/java/nio/channels/AsynchronousChannelGroup/Identity.java +++ b/jdk/test/java/nio/channels/AsynchronousChannelGroup/Identity.java @@ -24,6 +24,7 @@ /* @test * @bug 4607272 6842687 * @summary Unit test for AsynchronousChannelGroup + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/channels/AsynchronousChannelGroup/Restart.java b/jdk/test/java/nio/channels/AsynchronousChannelGroup/Restart.java index 456f66a2eee..4d364017f0e 100644 --- a/jdk/test/java/nio/channels/AsynchronousChannelGroup/Restart.java +++ b/jdk/test/java/nio/channels/AsynchronousChannelGroup/Restart.java @@ -24,6 +24,7 @@ /* @test * @bug 4607272 6842687 * @summary Unit test for AsynchronousChannelGroup + * @key randomness */ import java.nio.channels.*; diff --git a/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java b/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java index 10f51c978ca..55de744c0db 100644 --- a/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java +++ b/jdk/test/java/nio/channels/AsynchronousFileChannel/Basic.java @@ -24,6 +24,7 @@ /* @test * @bug 4607272 6822643 6830721 6842687 * @summary Unit test for AsynchronousFileChannel + * @key randomness */ import java.nio.file.*; diff --git a/jdk/test/java/nio/channels/AsynchronousFileChannel/Lock.java b/jdk/test/java/nio/channels/AsynchronousFileChannel/Lock.java index a7f2c7bb0cb..13a094e7d25 100644 --- a/jdk/test/java/nio/channels/AsynchronousFileChannel/Lock.java +++ b/jdk/test/java/nio/channels/AsynchronousFileChannel/Lock.java @@ -25,6 +25,7 @@ /* @test * @bug 4607272 6814948 6842687 * @summary Unit test for AsynchronousFileChannel#lock method + * @key randomness */ import java.net.*; diff --git a/jdk/test/java/nio/channels/AsynchronousFileChannel/LotsOfWrites.java b/jdk/test/java/nio/channels/AsynchronousFileChannel/LotsOfWrites.java index 02453e57f26..9c2d5ec3f6b 100644 --- a/jdk/test/java/nio/channels/AsynchronousFileChannel/LotsOfWrites.java +++ b/jdk/test/java/nio/channels/AsynchronousFileChannel/LotsOfWrites.java @@ -24,6 +24,7 @@ /* @test * @bug 6913877 * @summary Stress AsynchronousFileChannel.write + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java b/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java index 9442f9b5408..23d9eb36e4e 100644 --- a/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java +++ b/jdk/test/java/nio/channels/AsynchronousSocketChannel/Basic.java @@ -25,6 +25,7 @@ * @bug 4607272 6842687 6878369 6944810 7023403 * @summary Unit test for AsynchronousSocketChannel * @run main Basic -skipSlowConnectTest + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/channels/AsynchronousSocketChannel/StressLoopback.java b/jdk/test/java/nio/channels/AsynchronousSocketChannel/StressLoopback.java index 4627aaa2a5a..8f8f816cad6 100644 --- a/jdk/test/java/nio/channels/AsynchronousSocketChannel/StressLoopback.java +++ b/jdk/test/java/nio/channels/AsynchronousSocketChannel/StressLoopback.java @@ -26,6 +26,7 @@ * @summary Stress test connections through the loopback interface * @run main StressLoopback * @run main/othervm -Djdk.net.useFastTcpLoopback StressLoopback + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/channels/Channels/Basic2.java b/jdk/test/java/nio/channels/Channels/Basic2.java index 27a56c56bca..73acdf7b3c2 100644 --- a/jdk/test/java/nio/channels/Channels/Basic2.java +++ b/jdk/test/java/nio/channels/Channels/Basic2.java @@ -25,6 +25,7 @@ * @bug 4607272 * @summary Test Channels methods for interoperability between streams and * asynchronous byte channels + * @key randomness */ import java.net.*; diff --git a/jdk/test/java/nio/channels/Channels/ShortWrite.java b/jdk/test/java/nio/channels/Channels/ShortWrite.java index 82c8f7265d8..d39f69e4842 100644 --- a/jdk/test/java/nio/channels/Channels/ShortWrite.java +++ b/jdk/test/java/nio/channels/Channels/ShortWrite.java @@ -25,6 +25,7 @@ * @bug 6448457 * @summary Test Channels.newOutputStream returns OutputStream that handles * short writes from the underlying channel + * @key randomness */ import java.io.OutputStream; diff --git a/jdk/test/java/nio/channels/DatagramChannel/AdaptDatagramSocket.java b/jdk/test/java/nio/channels/DatagramChannel/AdaptDatagramSocket.java index 7937b56c59f..b8ec1c1060b 100644 --- a/jdk/test/java/nio/channels/DatagramChannel/AdaptDatagramSocket.java +++ b/jdk/test/java/nio/channels/DatagramChannel/AdaptDatagramSocket.java @@ -25,6 +25,7 @@ * @bug 4313882 4981129 * @summary Unit test for datagram-socket-channel adaptors * @library .. + * @key randomness */ import java.net.*; diff --git a/jdk/test/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java b/jdk/test/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java index 848f2820954..db061a833fc 100644 --- a/jdk/test/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java +++ b/jdk/test/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java @@ -27,6 +27,7 @@ * @build MulticastSendReceiveTests NetworkConfiguration * @run main MulticastSendReceiveTests * @run main/othervm -Djava.net.preferIPv4Stack=true MulticastSendReceiveTests + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/channels/DatagramChannel/Promiscuous.java b/jdk/test/java/nio/channels/DatagramChannel/Promiscuous.java index 027b4b79eea..884baaf581a 100644 --- a/jdk/test/java/nio/channels/DatagramChannel/Promiscuous.java +++ b/jdk/test/java/nio/channels/DatagramChannel/Promiscuous.java @@ -28,6 +28,7 @@ * @build Promiscuous NetworkConfiguration * @run main Promiscuous * @run main/othervm -Djava.net.preferIPv4Stack=true Promiscuous + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/channels/FileChannel/AtomicAppend.java b/jdk/test/java/nio/channels/FileChannel/AtomicAppend.java index 25f6b64924c..8e00c60bfd4 100644 --- a/jdk/test/java/nio/channels/FileChannel/AtomicAppend.java +++ b/jdk/test/java/nio/channels/FileChannel/AtomicAppend.java @@ -24,6 +24,7 @@ /* * @test * @summary Check that appends are atomic + * @key randomness */ import java.io.File; diff --git a/jdk/test/java/nio/channels/FileChannel/ClosedByInterrupt.java b/jdk/test/java/nio/channels/FileChannel/ClosedByInterrupt.java index 153a2ad451f..a14d111b6f0 100644 --- a/jdk/test/java/nio/channels/FileChannel/ClosedByInterrupt.java +++ b/jdk/test/java/nio/channels/FileChannel/ClosedByInterrupt.java @@ -25,6 +25,7 @@ * @bug 6979009 * @summary Ensure ClosedByInterruptException is thrown when I/O operation * interrupted by Thread.interrupt + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/FileChannel/MapTest.java b/jdk/test/java/nio/channels/FileChannel/MapTest.java index 066d6097389..f2bbb08680e 100644 --- a/jdk/test/java/nio/channels/FileChannel/MapTest.java +++ b/jdk/test/java/nio/channels/FileChannel/MapTest.java @@ -25,6 +25,7 @@ * @bug 4429043 8002180 * @summary Test file mapping with FileChannel * @run main/othervm MapTest + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/FileChannel/Position.java b/jdk/test/java/nio/channels/FileChannel/Position.java index cbb7dd9de6e..825ba628248 100644 --- a/jdk/test/java/nio/channels/FileChannel/Position.java +++ b/jdk/test/java/nio/channels/FileChannel/Position.java @@ -24,6 +24,7 @@ /* @test * @bug 4429043 6526860 * @summary Test position method of FileChannel + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/FileChannel/Pread.java b/jdk/test/java/nio/channels/FileChannel/Pread.java index fca93f97f3f..8e3dd026c94 100644 --- a/jdk/test/java/nio/channels/FileChannel/Pread.java +++ b/jdk/test/java/nio/channels/FileChannel/Pread.java @@ -24,6 +24,7 @@ /* @test * @bug 4862382 4862408 * @summary Test positional read method of FileChannel + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/FileChannel/Pwrite.java b/jdk/test/java/nio/channels/FileChannel/Pwrite.java index 21f1c298b63..94f7780328e 100644 --- a/jdk/test/java/nio/channels/FileChannel/Pwrite.java +++ b/jdk/test/java/nio/channels/FileChannel/Pwrite.java @@ -24,6 +24,7 @@ /* @test * @bug 4862411 * @summary Test positional write method of FileChannel + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/FileChannel/Size.java b/jdk/test/java/nio/channels/FileChannel/Size.java index 8a658e07b05..d06ba81fa51 100644 --- a/jdk/test/java/nio/channels/FileChannel/Size.java +++ b/jdk/test/java/nio/channels/FileChannel/Size.java @@ -25,6 +25,7 @@ * @bug 4563125 * @summary Test size method of FileChannel * @run main/othervm Size + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/FileChannel/Transfer.java b/jdk/test/java/nio/channels/FileChannel/Transfer.java index e9524be7b5f..04a0f3251b2 100644 --- a/jdk/test/java/nio/channels/FileChannel/Transfer.java +++ b/jdk/test/java/nio/channels/FileChannel/Transfer.java @@ -26,6 +26,7 @@ * 6984545 * @summary Test FileChannel.transferFrom and transferTo * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/FileChannel/Truncate.java b/jdk/test/java/nio/channels/FileChannel/Truncate.java index ff62d724a98..38a020d7de8 100644 --- a/jdk/test/java/nio/channels/FileChannel/Truncate.java +++ b/jdk/test/java/nio/channels/FileChannel/Truncate.java @@ -24,6 +24,7 @@ /* @test * @bug 6191269 6709457 8000330 * @summary Test truncate method of FileChannel + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/Pipe/PipeChannel.java b/jdk/test/java/nio/channels/Pipe/PipeChannel.java index 0ec9aaed735..2aaa4f84f08 100644 --- a/jdk/test/java/nio/channels/Pipe/PipeChannel.java +++ b/jdk/test/java/nio/channels/Pipe/PipeChannel.java @@ -23,6 +23,7 @@ /* @test * @summary Test reading and writing from Pipes + * @key randomness */ import java.io.*; @@ -37,7 +38,7 @@ import java.util.Random; */ public class PipeChannel { - private static Random generator = new Random(); + private static Random generator = new Random(); public static void main(String[] args) throws Exception { for (int x=0; x<100; x++) { diff --git a/jdk/test/java/nio/channels/Pipe/ScatteringRead.java b/jdk/test/java/nio/channels/Pipe/ScatteringRead.java index 83b520ceda5..a2685eea55f 100644 --- a/jdk/test/java/nio/channels/Pipe/ScatteringRead.java +++ b/jdk/test/java/nio/channels/Pipe/ScatteringRead.java @@ -22,8 +22,9 @@ */ /* @test - @bug 4526754 + * @bug 4526754 * @summary Test Pipe scattering reads + * @key randomness */ import java.nio.channels.*; diff --git a/jdk/test/java/nio/channels/Pipe/SelectPipe.java b/jdk/test/java/nio/channels/Pipe/SelectPipe.java index 85938eb1789..f782ee3ae1f 100644 --- a/jdk/test/java/nio/channels/Pipe/SelectPipe.java +++ b/jdk/test/java/nio/channels/Pipe/SelectPipe.java @@ -23,6 +23,7 @@ /* @test * @summary Test selection of ready pipe + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/Selector/SelectorTest.java b/jdk/test/java/nio/channels/Selector/SelectorTest.java index 8e835d88e2b..bd17d001816 100644 --- a/jdk/test/java/nio/channels/Selector/SelectorTest.java +++ b/jdk/test/java/nio/channels/Selector/SelectorTest.java @@ -24,6 +24,7 @@ /* @test * @summary Test selectors and socketchannels * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/ServerSocketChannel/NonBlockingAccept.java b/jdk/test/java/nio/channels/ServerSocketChannel/NonBlockingAccept.java index 7a425ad88ed..1b985e8c68a 100644 --- a/jdk/test/java/nio/channels/ServerSocketChannel/NonBlockingAccept.java +++ b/jdk/test/java/nio/channels/ServerSocketChannel/NonBlockingAccept.java @@ -27,6 +27,7 @@ * @library .. * @build TestUtil * @run main NonBlockingAccept + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/SocketChannel/CloseDuringWrite.java b/jdk/test/java/nio/channels/SocketChannel/CloseDuringWrite.java index 83d05bfd96e..50b7dbb3747 100644 --- a/jdk/test/java/nio/channels/SocketChannel/CloseDuringWrite.java +++ b/jdk/test/java/nio/channels/SocketChannel/CloseDuringWrite.java @@ -23,6 +23,7 @@ /* @test * @summary Test asynchronous close during a blocking write + * @key randomness */ import java.io.Closeable; diff --git a/jdk/test/java/nio/channels/SocketChannel/OutOfBand.java b/jdk/test/java/nio/channels/SocketChannel/OutOfBand.java index 68b973dca89..cd46f9ee6a2 100644 --- a/jdk/test/java/nio/channels/SocketChannel/OutOfBand.java +++ b/jdk/test/java/nio/channels/SocketChannel/OutOfBand.java @@ -24,6 +24,7 @@ /* @test * @summary Test socket adapter sendUrgentData method * @bug 6963907 + * @key randomness */ import java.net.*; diff --git a/jdk/test/java/nio/channels/SocketChannel/ShortWrite.java b/jdk/test/java/nio/channels/SocketChannel/ShortWrite.java index 0988006800a..c1d7c33fc5d 100644 --- a/jdk/test/java/nio/channels/SocketChannel/ShortWrite.java +++ b/jdk/test/java/nio/channels/SocketChannel/ShortWrite.java @@ -24,6 +24,7 @@ /* @test * @bug 7176630 7074436 * @summary Check for short writes on SocketChannels configured in blocking mode + * @key randomness */ import java.net.*; diff --git a/jdk/test/java/nio/channels/SocketChannel/VectorIO.java b/jdk/test/java/nio/channels/SocketChannel/VectorIO.java index 84c5a7f59e8..d7975dbfa44 100644 --- a/jdk/test/java/nio/channels/SocketChannel/VectorIO.java +++ b/jdk/test/java/nio/channels/SocketChannel/VectorIO.java @@ -24,6 +24,7 @@ /* @test * @summary Test socketchannel vector IO * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/channels/etc/AdaptorCloseAndInterrupt.java b/jdk/test/java/nio/channels/etc/AdaptorCloseAndInterrupt.java index 8d99fde7a41..292851873ca 100644 --- a/jdk/test/java/nio/channels/etc/AdaptorCloseAndInterrupt.java +++ b/jdk/test/java/nio/channels/etc/AdaptorCloseAndInterrupt.java @@ -24,6 +24,7 @@ /* @test * @bug 7184932 * @summary Test asynchronous close and interrupt of timed socket adapter methods + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/charset/coders/BashCache.java b/jdk/test/java/nio/charset/coders/BashCache.java index 2019af82393..2ded5c0ce07 100644 --- a/jdk/test/java/nio/charset/coders/BashCache.java +++ b/jdk/test/java/nio/charset/coders/BashCache.java @@ -24,6 +24,7 @@ /* @test * @bug 4517279 * @summary Stochastic test of thread-local coder caches + * @key randomness */ import java.nio.*; diff --git a/jdk/test/java/nio/charset/coders/BashStreams.java b/jdk/test/java/nio/charset/coders/BashStreams.java index 5781464aeee..15ea14c3ddf 100644 --- a/jdk/test/java/nio/charset/coders/BashStreams.java +++ b/jdk/test/java/nio/charset/coders/BashStreams.java @@ -23,6 +23,7 @@ /* @test * @summary Stochastic test of charset-based streams + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/nio/file/Files/BytesAndLines.java b/jdk/test/java/nio/file/Files/BytesAndLines.java index c3a1db74ce1..ca486ab87fc 100644 --- a/jdk/test/java/nio/file/Files/BytesAndLines.java +++ b/jdk/test/java/nio/file/Files/BytesAndLines.java @@ -27,6 +27,7 @@ * @run testng BytesAndLines * @summary Unit test for methods for Files readAllBytes, readAllLines and * and write methods. + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/file/Files/CopyAndMove.java b/jdk/test/java/nio/file/Files/CopyAndMove.java index 4853b0dcdf4..38470cc810b 100644 --- a/jdk/test/java/nio/file/Files/CopyAndMove.java +++ b/jdk/test/java/nio/file/Files/CopyAndMove.java @@ -27,6 +27,7 @@ * @library .. * @build CopyAndMove PassThroughFileSystem * @run main/othervm CopyAndMove + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/nio/file/Files/walkFileTree/SkipSiblings.java b/jdk/test/java/nio/file/Files/walkFileTree/SkipSiblings.java index bcdc4e1256c..d7bbdd974bc 100644 --- a/jdk/test/java/nio/file/Files/walkFileTree/SkipSiblings.java +++ b/jdk/test/java/nio/file/Files/walkFileTree/SkipSiblings.java @@ -27,6 +27,7 @@ * @library ../.. * @compile SkipSiblings.java CreateFileTree.java * @run main SkipSiblings + * @key randomness */ import java.nio.file.*; diff --git a/jdk/test/java/nio/file/Files/walkFileTree/SkipSubtree.java b/jdk/test/java/nio/file/Files/walkFileTree/SkipSubtree.java index c5522839b5b..8a2eeb7d1ff 100644 --- a/jdk/test/java/nio/file/Files/walkFileTree/SkipSubtree.java +++ b/jdk/test/java/nio/file/Files/walkFileTree/SkipSubtree.java @@ -27,6 +27,7 @@ * @library ../.. * @compile SkipSubtree.java CreateFileTree.java * @run main SkipSubtree + * @key randomness */ import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes; diff --git a/jdk/test/java/nio/file/Files/walkFileTree/TerminateWalk.java b/jdk/test/java/nio/file/Files/walkFileTree/TerminateWalk.java index a4b3cf724d5..445b7bfe33c 100644 --- a/jdk/test/java/nio/file/Files/walkFileTree/TerminateWalk.java +++ b/jdk/test/java/nio/file/Files/walkFileTree/TerminateWalk.java @@ -27,6 +27,7 @@ * @library ../.. * @compile TerminateWalk.java CreateFileTree.java * @run main TerminateWalk + * @key randomness */ import java.nio.file.*; diff --git a/jdk/test/java/nio/file/WatchService/LotsOfEvents.java b/jdk/test/java/nio/file/WatchService/LotsOfEvents.java index 64ab7aca65d..042dfd94146 100644 --- a/jdk/test/java/nio/file/WatchService/LotsOfEvents.java +++ b/jdk/test/java/nio/file/WatchService/LotsOfEvents.java @@ -26,6 +26,7 @@ * @summary Tests WatchService behavior when lots of events are pending * @library .. * @run main/timeout=180 LotsOfEvents + * @key randomness */ import java.nio.file.*; diff --git a/jdk/test/java/nio/file/WatchService/MayFlies.java b/jdk/test/java/nio/file/WatchService/MayFlies.java index ad0ed4c4131..3052ff6e695 100644 --- a/jdk/test/java/nio/file/WatchService/MayFlies.java +++ b/jdk/test/java/nio/file/WatchService/MayFlies.java @@ -27,6 +27,7 @@ * short lived files * @library .. * @run main MayFlies + * @key randomness */ import java.nio.file.*; diff --git a/jdk/test/java/nio/file/WatchService/SensitivityModifier.java b/jdk/test/java/nio/file/WatchService/SensitivityModifier.java index 4b7629db204..823539d1a23 100644 --- a/jdk/test/java/nio/file/WatchService/SensitivityModifier.java +++ b/jdk/test/java/nio/file/WatchService/SensitivityModifier.java @@ -26,6 +26,7 @@ * @summary Sanity test for Sun-specific sensitivity level watch event modifier * @library .. * @run main/timeout=240 SensitivityModifier + * @key randomness */ import java.nio.file.*; diff --git a/jdk/test/java/nio/file/attribute/AclFileAttributeView/Basic.java b/jdk/test/java/nio/file/attribute/AclFileAttributeView/Basic.java index aa613e22b78..00afd2cd1bf 100644 --- a/jdk/test/java/nio/file/attribute/AclFileAttributeView/Basic.java +++ b/jdk/test/java/nio/file/attribute/AclFileAttributeView/Basic.java @@ -25,6 +25,7 @@ * @bug 4313887 6838333 6891404 * @summary Unit test for java.nio.file.attribute.AclFileAttribueView * @library ../.. + * @key randomness */ import java.nio.file.*; diff --git a/jdk/test/java/nio/file/attribute/FileTime/Basic.java b/jdk/test/java/nio/file/attribute/FileTime/Basic.java index 8731ce77147..9e18d81d3db 100644 --- a/jdk/test/java/nio/file/attribute/FileTime/Basic.java +++ b/jdk/test/java/nio/file/attribute/FileTime/Basic.java @@ -24,6 +24,7 @@ /* @test * @bug 6844313 8011647 * @summary Unit test for java.nio.file.FileTime + * @key randomness */ diff --git a/jdk/test/java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java b/jdk/test/java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java index 69393a30a61..5f40d193cf0 100644 --- a/jdk/test/java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java +++ b/jdk/test/java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java @@ -25,6 +25,7 @@ * @bug 4313887 6838333 * @summary Unit test for java.nio.file.attribute.UserDefinedFileAttributeView * @library ../.. + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/java/security/MessageDigest/ByteBuffers.java b/jdk/test/java/security/MessageDigest/ByteBuffers.java index 4ce30846368..dd3467d0e67 100644 --- a/jdk/test/java/security/MessageDigest/ByteBuffers.java +++ b/jdk/test/java/security/MessageDigest/ByteBuffers.java @@ -26,6 +26,7 @@ * @bug 4844847 * @summary Test the MessageDigest.update(ByteBuffer) method * @author Andreas Sterbenz + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/security/MessageDigest/TestDigestIOStream.java b/jdk/test/java/security/MessageDigest/TestDigestIOStream.java index 46028e85af8..868da86ef62 100644 --- a/jdk/test/java/security/MessageDigest/TestDigestIOStream.java +++ b/jdk/test/java/security/MessageDigest/TestDigestIOStream.java @@ -36,6 +36,7 @@ import static java.lang.System.out; * @bug 8050370 * @summary MessageDigest tests with DigestIOStream * @author Kevin Liu + * @key randomness */ enum ReadModel { diff --git a/jdk/test/java/security/MessageDigest/TestSameLength.java b/jdk/test/java/security/MessageDigest/TestSameLength.java index eb59815c9bd..666baf3e69e 100644 --- a/jdk/test/java/security/MessageDigest/TestSameLength.java +++ b/jdk/test/java/security/MessageDigest/TestSameLength.java @@ -33,6 +33,7 @@ import java.util.Random; * @summary Check md.getDigestLength() equal digest output length with various * algorithm/dataLen/(update,digest methods). * @author Kevin Liu + * @key randomness */ public class TestSameLength { diff --git a/jdk/test/java/security/MessageDigest/TestSameValue.java b/jdk/test/java/security/MessageDigest/TestSameValue.java index aef4ceae402..56b8652264a 100644 --- a/jdk/test/java/security/MessageDigest/TestSameValue.java +++ b/jdk/test/java/security/MessageDigest/TestSameValue.java @@ -34,6 +34,7 @@ import java.util.Random; * @summary Check md.digest(data) value whether same with digest output value * with various update/digest methods. * @author Kevin Liu + * @key randomness */ public class TestSameValue { diff --git a/jdk/test/java/security/Signature/ByteBuffers.java b/jdk/test/java/security/Signature/ByteBuffers.java index e3063511d90..937c9842c3b 100644 --- a/jdk/test/java/security/Signature/ByteBuffers.java +++ b/jdk/test/java/security/Signature/ByteBuffers.java @@ -26,6 +26,7 @@ * @bug 4844847 * @summary Test the Signature.update(ByteBuffer) method * @author Andreas Sterbenz + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/security/Signature/NONEwithRSA.java b/jdk/test/java/security/Signature/NONEwithRSA.java index 16f7b53f087..6d18c7ac96f 100644 --- a/jdk/test/java/security/Signature/NONEwithRSA.java +++ b/jdk/test/java/security/Signature/NONEwithRSA.java @@ -26,6 +26,7 @@ * @bug 4955844 * @summary ensure that the NONEwithRSA adapter works correctly * @author Andreas Sterbenz + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/security/spec/EllipticCurveMatch.java b/jdk/test/java/security/spec/EllipticCurveMatch.java index 797f6d2e0f3..85af7df9a34 100644 --- a/jdk/test/java/security/spec/EllipticCurveMatch.java +++ b/jdk/test/java/security/spec/EllipticCurveMatch.java @@ -26,6 +26,7 @@ * @bug 6738532 * @summary Check EllipticCurve.equals() does not compare seed value of curve. * @author Mike StJohns + * @key randomness */ import java.security.spec.*; diff --git a/jdk/test/java/sql/JavatimeTest.java b/jdk/test/java/sql/JavatimeTest.java index 3ff70d007d1..89344d7cdc6 100644 --- a/jdk/test/java/sql/JavatimeTest.java +++ b/jdk/test/java/sql/JavatimeTest.java @@ -25,6 +25,7 @@ *@test *@bug 8007520 *@summary Test those bridge methods to/from java.time date/time classes + * @key randomness */ import java.util.Random; diff --git a/jdk/test/java/text/Format/MessageFormat/Bug7003643.java b/jdk/test/java/text/Format/MessageFormat/Bug7003643.java index aeb722cac17..35af811d221 100644 --- a/jdk/test/java/text/Format/MessageFormat/Bug7003643.java +++ b/jdk/test/java/text/Format/MessageFormat/Bug7003643.java @@ -25,6 +25,7 @@ * @test * @bug 7003643 * @summary Make sure MessageFormat.toPattern produces correct quoting. (SPI part is tested in PluggableLocale tests.) + * @key randomness */ import java.text.*; diff --git a/jdk/test/java/util/Arrays/ArrayObjectMethods.java b/jdk/test/java/util/Arrays/ArrayObjectMethods.java index 8010f1b1d80..3d3e928b08c 100644 --- a/jdk/test/java/util/Arrays/ArrayObjectMethods.java +++ b/jdk/test/java/util/Arrays/ArrayObjectMethods.java @@ -26,6 +26,7 @@ * @bug 4906359 6239296 * @summary Basic test for content-based array object methods * @author Josh Bloch, Martin Buchholz + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Arrays/CopyMethods.java b/jdk/test/java/util/Arrays/CopyMethods.java index e19b8073a59..4e38e8adf21 100644 --- a/jdk/test/java/util/Arrays/CopyMethods.java +++ b/jdk/test/java/util/Arrays/CopyMethods.java @@ -26,6 +26,7 @@ * @bug 4655503 * @summary Test for array cloning and slicing methods. * @author John Rose + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Arrays/Correct.java b/jdk/test/java/util/Arrays/Correct.java index 93301619928..e9ddc7edef5 100644 --- a/jdk/test/java/util/Arrays/Correct.java +++ b/jdk/test/java/util/Arrays/Correct.java @@ -26,6 +26,7 @@ * @bug 4726380 8037097 * @summary Check that different sorts give equivalent results. * @run testng Correct + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Base64/TestBase64.java b/jdk/test/java/util/Base64/TestBase64.java index 5466cf33355..bb2330721ec 100644 --- a/jdk/test/java/util/Base64/TestBase64.java +++ b/jdk/test/java/util/Base64/TestBase64.java @@ -25,6 +25,7 @@ * @test 4235519 8004212 8005394 8007298 8006295 8006315 8006530 8007379 8008925 * 8014217 8025003 8026330 8028397 * @summary tests java.util.Base64 + * @key randomness */ import java.io.ByteArrayInputStream; diff --git a/jdk/test/java/util/BitSet/BSMethods.java b/jdk/test/java/util/BitSet/BSMethods.java index 86d7499a428..b8ed8b31999 100644 --- a/jdk/test/java/util/BitSet/BSMethods.java +++ b/jdk/test/java/util/BitSet/BSMethods.java @@ -27,6 +27,7 @@ * @summary Test the operation of the methods of BitSet class * @author Mike McCloskey, Martin Buchholz * @run main/othervm BSMethods + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/BitSet/ImportExport.java b/jdk/test/java/util/BitSet/ImportExport.java index 9554b2e4ba4..6d01ab4b7c5 100644 --- a/jdk/test/java/util/BitSet/ImportExport.java +++ b/jdk/test/java/util/BitSet/ImportExport.java @@ -26,6 +26,7 @@ * @bug 5037068 * @summary Test import/export constructors and methods * @author Martin Buchholz + * @key randomness */ import java.nio.*; diff --git a/jdk/test/java/util/BitSet/PreviousBits.java b/jdk/test/java/util/BitSet/PreviousBits.java index bba55318fdd..e83a6df27a8 100644 --- a/jdk/test/java/util/BitSet/PreviousBits.java +++ b/jdk/test/java/util/BitSet/PreviousBits.java @@ -25,6 +25,7 @@ * @test * @bug 6410729 6586631 * @summary Test previousClearBit, previousSetBit + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Calendar/JavatimeTest.java b/jdk/test/java/util/Calendar/JavatimeTest.java index 6a0a4ff9a66..7af6e9d4c03 100644 --- a/jdk/test/java/util/Calendar/JavatimeTest.java +++ b/jdk/test/java/util/Calendar/JavatimeTest.java @@ -25,6 +25,7 @@ *@test *@bug 8007520 8008254 *@summary Test those bridge methods to/from java.time date/time classes + * @key randomness */ import java.util.Calendar; diff --git a/jdk/test/java/util/Collection/MOAT.java b/jdk/test/java/util/Collection/MOAT.java index f55a1e87745..e04659c4dda 100644 --- a/jdk/test/java/util/Collection/MOAT.java +++ b/jdk/test/java/util/Collection/MOAT.java @@ -30,6 +30,7 @@ * @summary Run many tests on many Collection and Map implementations * @author Martin Buchholz * @run main MOAT + * @key randomness */ /* Mother Of All (Collection) Tests diff --git a/jdk/test/java/util/Collections/AddAll.java b/jdk/test/java/util/Collections/AddAll.java index dc768206085..0f8e6d9d527 100644 --- a/jdk/test/java/util/Collections/AddAll.java +++ b/jdk/test/java/util/Collections/AddAll.java @@ -26,6 +26,7 @@ * @bug 4822887 * @summary Basic test for Collections.addAll * @author Josh Bloch + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Collections/CheckedListBash.java b/jdk/test/java/util/Collections/CheckedListBash.java index dfaa8773d03..80d7e3fd475 100644 --- a/jdk/test/java/util/Collections/CheckedListBash.java +++ b/jdk/test/java/util/Collections/CheckedListBash.java @@ -26,6 +26,7 @@ * @bug 4904067 * @summary Unit test for Collections.checkedList * @author Josh Bloch + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Collections/CheckedMapBash.java b/jdk/test/java/util/Collections/CheckedMapBash.java index 9a6aab1cafc..7f622aa8e23 100644 --- a/jdk/test/java/util/Collections/CheckedMapBash.java +++ b/jdk/test/java/util/Collections/CheckedMapBash.java @@ -27,6 +27,7 @@ * @summary Unit test for Collections.checkedMap * @author Josh Bloch * @run testng CheckedMapBash + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Collections/CheckedSetBash.java b/jdk/test/java/util/Collections/CheckedSetBash.java index 462792cf1d8..c24878a81af 100644 --- a/jdk/test/java/util/Collections/CheckedSetBash.java +++ b/jdk/test/java/util/Collections/CheckedSetBash.java @@ -27,6 +27,7 @@ * @summary Unit test for Collections.checkedSet * @author Josh Bloch * @run testng CheckedSetBash + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Collections/Disjoint.java b/jdk/test/java/util/Collections/Disjoint.java index 762f5164a67..e13241efbb7 100644 --- a/jdk/test/java/util/Collections/Disjoint.java +++ b/jdk/test/java/util/Collections/Disjoint.java @@ -26,6 +26,7 @@ * @bug 4339792 * @summary Basic test for Collections.disjoint * @author Josh Bloch + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/Collections/Rotate.java b/jdk/test/java/util/Collections/Rotate.java index aae1deb7bc0..a759e90e1d3 100644 --- a/jdk/test/java/util/Collections/Rotate.java +++ b/jdk/test/java/util/Collections/Rotate.java @@ -25,6 +25,7 @@ * @test * @bug 4323074 * @summary Basic test for new rotate algorithm + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/EnumSet/EnumSetBash.java b/jdk/test/java/util/EnumSet/EnumSetBash.java index a7ab57019cf..873c781bfe0 100644 --- a/jdk/test/java/util/EnumSet/EnumSetBash.java +++ b/jdk/test/java/util/EnumSet/EnumSetBash.java @@ -28,6 +28,7 @@ * @author Josh Bloch * @author Neal Gafter * @author Yo Ma Ma + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/HashSet/Serialization.java b/jdk/test/java/util/HashSet/Serialization.java index 7597ae1a564..b6f9e55373e 100644 --- a/jdk/test/java/util/HashSet/Serialization.java +++ b/jdk/test/java/util/HashSet/Serialization.java @@ -34,6 +34,7 @@ import java.util.concurrent.ThreadLocalRandom; * @test * @bug 8016252 * @summary Verify that a serialized HashSet may successfully be deserialized. + * @key randomness */ public class Serialization { diff --git a/jdk/test/java/util/IdentityHashMap/Capacity.java b/jdk/test/java/util/IdentityHashMap/Capacity.java index 3114e6c16de..1be172efc49 100644 --- a/jdk/test/java/util/IdentityHashMap/Capacity.java +++ b/jdk/test/java/util/IdentityHashMap/Capacity.java @@ -39,6 +39,7 @@ import static org.testng.Assert.*; * @summary IdentityHashMap reallocates storage when inserting expected * number of elements * @run testng Capacity + * @key randomness */ @Test diff --git a/jdk/test/java/util/List/LockStep.java b/jdk/test/java/util/List/LockStep.java index 70538fcb2bb..100b63f9fe8 100644 --- a/jdk/test/java/util/List/LockStep.java +++ b/jdk/test/java/util/List/LockStep.java @@ -26,6 +26,7 @@ * @bug 6359979 * @summary Compare List implementations for identical behavior * @author Martin Buchholz + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/Map/LockStep.java b/jdk/test/java/util/Map/LockStep.java index 35cf98b9d52..45754a2f644 100644 --- a/jdk/test/java/util/Map/LockStep.java +++ b/jdk/test/java/util/Map/LockStep.java @@ -25,6 +25,7 @@ * @test * @bug 6612102 * @summary Test Map implementations for mutual compatibility + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/NavigableMap/LockStep.java b/jdk/test/java/util/NavigableMap/LockStep.java index 62ffc72877d..94f2cb1c93e 100644 --- a/jdk/test/java/util/NavigableMap/LockStep.java +++ b/jdk/test/java/util/NavigableMap/LockStep.java @@ -29,6 +29,7 @@ * @run main/othervm -XX:+AggressiveOpts LockStep * @run main/othervm -XX:+AggressiveOpts -Dthorough=true LockStep * @author Martin Buchholz + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/Properties/ConcurrentLoadAndStoreXML.java b/jdk/test/java/util/Properties/ConcurrentLoadAndStoreXML.java index 7bb187c228c..ed573a46a67 100644 --- a/jdk/test/java/util/Properties/ConcurrentLoadAndStoreXML.java +++ b/jdk/test/java/util/Properties/ConcurrentLoadAndStoreXML.java @@ -25,6 +25,7 @@ * @bug 8005281 * @summary Test that the Properties storeToXML and loadFromXML methods are * thread safe + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/Random/DistinctSeeds.java b/jdk/test/java/util/Random/DistinctSeeds.java index fd2bcfcb658..ddd541b3c60 100644 --- a/jdk/test/java/util/Random/DistinctSeeds.java +++ b/jdk/test/java/util/Random/DistinctSeeds.java @@ -35,6 +35,7 @@ * @test * @bug 4949279 6937857 * @summary Independent instantiations of Random() have distinct seeds. + * @key randomness */ import java.util.ArrayList; diff --git a/jdk/test/java/util/Random/RandomStreamTest.java b/jdk/test/java/util/Random/RandomStreamTest.java index e96d57e2639..269fec8045e 100644 --- a/jdk/test/java/util/Random/RandomStreamTest.java +++ b/jdk/test/java/util/Random/RandomStreamTest.java @@ -47,6 +47,7 @@ import static org.testng.Assert.*; * @run testng RandomStreamTest * @summary test stream methods on Random * @author Brian Goetz + * @key randomness */ public class RandomStreamTest { diff --git a/jdk/test/java/util/Random/RandomTest.java b/jdk/test/java/util/Random/RandomTest.java index e56ffde1961..3055f5cbbcb 100644 --- a/jdk/test/java/util/Random/RandomTest.java +++ b/jdk/test/java/util/Random/RandomTest.java @@ -35,6 +35,7 @@ import static org.testng.Assert.*; * @test * @run testng RandomTest * @summary test methods on Random + * @key randomness */ @Test public class RandomTest { diff --git a/jdk/test/java/util/ResourceBundle/Control/StressTest.java b/jdk/test/java/util/ResourceBundle/Control/StressTest.java index abead81d2e5..9766606fba9 100644 --- a/jdk/test/java/util/ResourceBundle/Control/StressTest.java +++ b/jdk/test/java/util/ResourceBundle/Control/StressTest.java @@ -25,6 +25,7 @@ * @bug 5102289 * @summary Stress test for ResourceBundle.getBundle with ResourceBundle.Control. * @run main/othervm -esa StressTest 2 15 + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/SplittableRandom/SplittableRandomTest.java b/jdk/test/java/util/SplittableRandom/SplittableRandomTest.java index 57e1a3434a3..c2e97c1612c 100644 --- a/jdk/test/java/util/SplittableRandom/SplittableRandomTest.java +++ b/jdk/test/java/util/SplittableRandom/SplittableRandomTest.java @@ -39,6 +39,7 @@ import static org.testng.AssertJUnit.assertTrue; * @run testng SplittableRandomTest * @run testng/othervm -Djava.util.secureRandomSeed=true SplittableRandomTest * @summary test methods on SplittableRandom + * @key randomness */ @Test public class SplittableRandomTest { diff --git a/jdk/test/java/util/Timer/DelayOverflow.java b/jdk/test/java/util/Timer/DelayOverflow.java index b72a155e1b5..bf36bcc5705 100644 --- a/jdk/test/java/util/Timer/DelayOverflow.java +++ b/jdk/test/java/util/Timer/DelayOverflow.java @@ -27,6 +27,7 @@ * @summary java.util.Timer schedule delay Long.MAX_VALUE causes task to execute multiple times * @author Chris Hegarty * @author Martin Buchholz + * @key randomness */ import java.util.Date; diff --git a/jdk/test/java/util/Timer/Purge.java b/jdk/test/java/util/Timer/Purge.java index 69c92881776..b753ec81bcd 100644 --- a/jdk/test/java/util/Timer/Purge.java +++ b/jdk/test/java/util/Timer/Purge.java @@ -25,6 +25,7 @@ * @test * @bug 4481072 * @summary Basic test for purge method + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/UUID/Serial.java b/jdk/test/java/util/UUID/Serial.java index 4a6d2714135..97badcc34ac 100644 --- a/jdk/test/java/util/UUID/Serial.java +++ b/jdk/test/java/util/UUID/Serial.java @@ -25,6 +25,7 @@ * @test * @bug 5014447 * @summary Test deserialization of UUID + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/UUID/UUIDTest.java b/jdk/test/java/util/UUID/UUIDTest.java index 93ad7ad3490..06b240fa9fa 100644 --- a/jdk/test/java/util/UUID/UUIDTest.java +++ b/jdk/test/java/util/UUID/UUIDTest.java @@ -24,6 +24,7 @@ /* @test * @bug 4173528 5068772 * @summary Unit tests for java.util.UUID + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/WeakHashMap/GCDuringIteration.java b/jdk/test/java/util/WeakHashMap/GCDuringIteration.java index 4744ecce181..a66ad9580d7 100644 --- a/jdk/test/java/util/WeakHashMap/GCDuringIteration.java +++ b/jdk/test/java/util/WeakHashMap/GCDuringIteration.java @@ -27,6 +27,7 @@ * @ignore until 6842353 is resolved * @summary Check that iterators work properly in the presence of * concurrent finalization and removal of elements. + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/logging/CheckZombieLockTest.java b/jdk/test/java/util/logging/CheckZombieLockTest.java index ab65a814f0b..16909532ceb 100644 --- a/jdk/test/java/util/logging/CheckZombieLockTest.java +++ b/jdk/test/java/util/logging/CheckZombieLockTest.java @@ -37,6 +37,7 @@ * @run main/othervm CheckZombieLockTest CLEANUP * @run main/othervm CheckZombieLockTest REUSE * @run main/othervm CheckZombieLockTest CLEANUP + * @key randomness */ import java.io.File; import java.io.IOException; diff --git a/jdk/test/java/util/logging/DrainFindDeadlockTest.java b/jdk/test/java/util/logging/DrainFindDeadlockTest.java index 13a959c07ff..6d0bd084346 100644 --- a/jdk/test/java/util/logging/DrainFindDeadlockTest.java +++ b/jdk/test/java/util/logging/DrainFindDeadlockTest.java @@ -36,6 +36,7 @@ import java.util.Map; * @author jim.gish@oracle.com * @build DrainFindDeadlockTest * @run main/othervm/timeout=10 DrainFindDeadlockTest + * @key randomness */ /** diff --git a/jdk/test/java/util/logging/FileHandlerLongLimit.java b/jdk/test/java/util/logging/FileHandlerLongLimit.java index 67e4001fb81..0aa2fc04641 100644 --- a/jdk/test/java/util/logging/FileHandlerLongLimit.java +++ b/jdk/test/java/util/logging/FileHandlerLongLimit.java @@ -55,6 +55,7 @@ import java.util.logging.LoggingPermission; * @run main/othervm FileHandlerLongLimit UNSECURE * @run main/othervm FileHandlerLongLimit SECURE * @author danielfuchs + * @key randomness */ public class FileHandlerLongLimit { diff --git a/jdk/test/java/util/logging/FileHandlerPath.java b/jdk/test/java/util/logging/FileHandlerPath.java index 93859091c9b..602d4cf9c7d 100644 --- a/jdk/test/java/util/logging/FileHandlerPath.java +++ b/jdk/test/java/util/logging/FileHandlerPath.java @@ -56,6 +56,7 @@ import java.util.logging.LoggingPermission; * @run main/othervm FileHandlerPath UNSECURE * @run main/othervm FileHandlerPath SECURE * @author danielfuchs + * @key randomness */ public class FileHandlerPath { diff --git a/jdk/test/java/util/logging/FileHandlerPatternExceptions.java b/jdk/test/java/util/logging/FileHandlerPatternExceptions.java index a4026d9bde9..fdcafa04c57 100644 --- a/jdk/test/java/util/logging/FileHandlerPatternExceptions.java +++ b/jdk/test/java/util/logging/FileHandlerPatternExceptions.java @@ -49,6 +49,7 @@ import java.util.logging.LogManager; * @run main/othervm FileHandlerPatternExceptions UNSECURE * @run main/othervm FileHandlerPatternExceptions SECURE * @author danielfuchs + * @key randomness */ public class FileHandlerPatternExceptions { diff --git a/jdk/test/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java b/jdk/test/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java index 491d7583243..38a6c56cbd5 100644 --- a/jdk/test/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java +++ b/jdk/test/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java @@ -59,6 +59,7 @@ import java.util.logging.LoggingPermission; * @run main/othervm ParentLoggerWithHandlerGC UNSECURE * @run main/othervm ParentLoggerWithHandlerGC SECURE * @author danielfuchs + * @key randomness */ public class ParentLoggerWithHandlerGC { diff --git a/jdk/test/java/util/logging/LoggingDeadlock.java b/jdk/test/java/util/logging/LoggingDeadlock.java index 41c9e8b3d05..131c92942f7 100644 --- a/jdk/test/java/util/logging/LoggingDeadlock.java +++ b/jdk/test/java/util/logging/LoggingDeadlock.java @@ -30,6 +30,10 @@ * * @build LoggingDeadlock * @run main/timeout=15 LoggingDeadlock + * @key randomness + */ + +/* * * There can be a deadlock between two class initializations. * It happens if the LogManager. and the Logger. diff --git a/jdk/test/java/util/logging/LoggingDeadlock2.java b/jdk/test/java/util/logging/LoggingDeadlock2.java index c5b4e893738..b33a25191fc 100644 --- a/jdk/test/java/util/logging/LoggingDeadlock2.java +++ b/jdk/test/java/util/logging/LoggingDeadlock2.java @@ -29,6 +29,10 @@ * * @build LoggingDeadlock2 * @run main LoggingDeadlock2 + * @key randomness + */ + +/* * * There is a clear deadlock between LogManager. and * Cleaner.run() methods. diff --git a/jdk/test/java/util/logging/TestLogConfigurationDeadLockWithConf.java b/jdk/test/java/util/logging/TestLogConfigurationDeadLockWithConf.java index 9bde8d516fc..af8651d38b3 100644 --- a/jdk/test/java/util/logging/TestLogConfigurationDeadLockWithConf.java +++ b/jdk/test/java/util/logging/TestLogConfigurationDeadLockWithConf.java @@ -46,6 +46,7 @@ import java.util.logging.Logger; * caused by synchronization issues in Logger and LogManager. * @run main/othervm TestLogConfigurationDeadLockWithConf * @author danielfuchs + * @key randomness */ // This test is a best effort to try & detect issues. The test itself will run // for 8secs. This is usually sufficient to detect issues. diff --git a/jdk/test/java/util/regex/RegExTest.java b/jdk/test/java/util/regex/RegExTest.java index f04f6f1e8c7..488b431b257 100644 --- a/jdk/test/java/util/regex/RegExTest.java +++ b/jdk/test/java/util/regex/RegExTest.java @@ -33,6 +33,7 @@ * 6350801 6676425 6878475 6919132 6931676 6948903 6990617 7014645 7039066 * 7067045 7014640 7189363 8007395 8013252 8013254 8012646 8023647 6559590 * 8027645 8035076 8039124 8035975 8074678 + * @key randomness */ import java.util.function.Function; diff --git a/jdk/test/java/util/zip/3GBZipFiles.sh b/jdk/test/java/util/zip/3GBZipFiles.sh index 7661b8445d2..a03290f9cae 100644 --- a/jdk/test/java/util/zip/3GBZipFiles.sh +++ b/jdk/test/java/util/zip/3GBZipFiles.sh @@ -29,6 +29,7 @@ # @run shell 3GBZipFiles.sh 9986 # @ignore runs for hours and eats up 7 Gigabytes of disk space # @run shell/timeout=604800 3GBZipFiles.sh 3141592653 +# @key randomness # Command-line usage: # javac FileBuilder.java && sh 3GBZipFiles.sh /path/to/jdk filesize diff --git a/jdk/test/java/util/zip/DeInflate.java b/jdk/test/java/util/zip/DeInflate.java index c3ca7acf71f..886c9d4bc47 100644 --- a/jdk/test/java/util/zip/DeInflate.java +++ b/jdk/test/java/util/zip/DeInflate.java @@ -25,6 +25,7 @@ * @test * @bug 7110149 * @summary Test basic deflater & inflater functionality + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/DeflateIn_InflateOut.java b/jdk/test/java/util/zip/DeflateIn_InflateOut.java index 29edda840ef..dd69a7773eb 100644 --- a/jdk/test/java/util/zip/DeflateIn_InflateOut.java +++ b/jdk/test/java/util/zip/DeflateIn_InflateOut.java @@ -25,6 +25,7 @@ * @test * @bug 4679743 * @summary Test basic functionality of DeflaterInputStream and InflaterOutputStream + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/FlaterTest.java b/jdk/test/java/util/zip/FlaterTest.java index 2179a1303ea..ff11ab0bd1c 100644 --- a/jdk/test/java/util/zip/FlaterTest.java +++ b/jdk/test/java/util/zip/FlaterTest.java @@ -26,6 +26,7 @@ * @bug 6348045 * @summary GZipOutputStream/InputStream goes critical(calls JNI_Get*Critical) * and causes slowness. This test uses Deflater and Inflater directly. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/GZIP/Accordion.java b/jdk/test/java/util/zip/GZIP/Accordion.java index fa5399e6221..a0d7494a26f 100644 --- a/jdk/test/java/util/zip/GZIP/Accordion.java +++ b/jdk/test/java/util/zip/GZIP/Accordion.java @@ -25,6 +25,7 @@ * @bug 5092263 * @summary GZIPInputStream o GZIPOutputStream === the identity stream * @author Martin Buchholz + * @key randomness */ // To manually test for uncompressed streams larger than 2GB, do diff --git a/jdk/test/java/util/zip/GZIP/GZIPInputStreamRead.java b/jdk/test/java/util/zip/GZIP/GZIPInputStreamRead.java index ba87f78373a..56bd58e1aaf 100644 --- a/jdk/test/java/util/zip/GZIP/GZIPInputStreamRead.java +++ b/jdk/test/java/util/zip/GZIP/GZIPInputStreamRead.java @@ -25,6 +25,7 @@ * @bug 4691425 * @summary Test the read and write of GZIPInput/OutputStream, including * concatenated .gz inputstream + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/InflateIn_DeflateOut.java b/jdk/test/java/util/zip/InflateIn_DeflateOut.java index 1e4ef2bd073..0747d22b0a2 100644 --- a/jdk/test/java/util/zip/InflateIn_DeflateOut.java +++ b/jdk/test/java/util/zip/InflateIn_DeflateOut.java @@ -25,6 +25,7 @@ * @test * @bug 4206909 4813885 * @summary Test basic functionality of DeflaterOutputStream/InflaterInputStream and GZIPOutputStream/GZIPInputStream, including flush + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/InflaterBufferSize.java b/jdk/test/java/util/zip/InflaterBufferSize.java index cf5363fca3e..1c512ec2c3d 100644 --- a/jdk/test/java/util/zip/InflaterBufferSize.java +++ b/jdk/test/java/util/zip/InflaterBufferSize.java @@ -26,6 +26,7 @@ * @bug 6571338 * @summary Inflater should not require a buffer to the inflate() methods * larger than 1 byte. + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/TimeChecksum.java b/jdk/test/java/util/zip/TimeChecksum.java index cc81f1e7592..d6eb44f77f1 100644 --- a/jdk/test/java/util/zip/TimeChecksum.java +++ b/jdk/test/java/util/zip/TimeChecksum.java @@ -25,6 +25,7 @@ /* @test * @bug 7109837 * @summary Test Adler32/CRC32.update(ByteBuffer) + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/zip/TotalInOut.java b/jdk/test/java/util/zip/TotalInOut.java index 1ea12b3b82c..c7f22a63b31 100644 --- a/jdk/test/java/util/zip/TotalInOut.java +++ b/jdk/test/java/util/zip/TotalInOut.java @@ -24,6 +24,7 @@ /* @test * @bug 7188852 * @summary Test De/Inflater.getBytesRead/Written() + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/ZipFile/Assortment.java b/jdk/test/java/util/zip/ZipFile/Assortment.java index b890b31ff1a..61cf415d51a 100644 --- a/jdk/test/java/util/zip/ZipFile/Assortment.java +++ b/jdk/test/java/util/zip/ZipFile/Assortment.java @@ -25,6 +25,7 @@ * @bug 4770745 6234507 6303183 8048990 * @summary test a variety of zip file entries * @author Martin Buchholz + * @key randomness */ import java.util.*; diff --git a/jdk/test/java/util/zip/ZipFile/ClearStaleZipFileInputStreams.java b/jdk/test/java/util/zip/ZipFile/ClearStaleZipFileInputStreams.java index d1be7dc9cc6..2ba02300012 100644 --- a/jdk/test/java/util/zip/ZipFile/ClearStaleZipFileInputStreams.java +++ b/jdk/test/java/util/zip/ZipFile/ClearStaleZipFileInputStreams.java @@ -30,6 +30,7 @@ * @bug 7031076 * @summary Allow stale InputStreams from ZipFiles to be GC'd * @author Neil Richards , + * @key randomness */ import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; diff --git a/jdk/test/java/util/zip/ZipFile/FinalizeZipFile.java b/jdk/test/java/util/zip/ZipFile/FinalizeZipFile.java index 74866cac808..06dd4bc3bd6 100644 --- a/jdk/test/java/util/zip/ZipFile/FinalizeZipFile.java +++ b/jdk/test/java/util/zip/ZipFile/FinalizeZipFile.java @@ -24,6 +24,7 @@ /* @test * @bug 7007609 7009618 * @summary Check that ZipFile objects are always collected + * @key randomness */ import java.io.*; diff --git a/jdk/test/java/util/zip/ZipFile/MultiThreadedReadTest.java b/jdk/test/java/util/zip/ZipFile/MultiThreadedReadTest.java index c1f69a90587..a97e1f35285 100644 --- a/jdk/test/java/util/zip/ZipFile/MultiThreadedReadTest.java +++ b/jdk/test/java/util/zip/ZipFile/MultiThreadedReadTest.java @@ -27,6 +27,7 @@ * @library /lib/testlibrary * @build jdk.testlibrary.FileUtils * @run main MultiThreadedReadTest + * @key randomness */ import java.io.File; diff --git a/jdk/test/java/util/zip/ZipFile/ReadZip.java b/jdk/test/java/util/zip/ZipFile/ReadZip.java index 44f1d9ed97f..1052642eda7 100644 --- a/jdk/test/java/util/zip/ZipFile/ReadZip.java +++ b/jdk/test/java/util/zip/ZipFile/ReadZip.java @@ -24,6 +24,7 @@ /* @test @bug 4241361 4842702 4985614 6646605 5032358 6923692 @summary Make sure we can read a zip file. + @key randomness */ import java.io.*; diff --git a/jdk/test/javax/crypto/Cipher/ByteBuffers.java b/jdk/test/javax/crypto/Cipher/ByteBuffers.java index 99c807229f1..233e62fb83a 100644 --- a/jdk/test/javax/crypto/Cipher/ByteBuffers.java +++ b/jdk/test/javax/crypto/Cipher/ByteBuffers.java @@ -26,6 +26,7 @@ * @bug 4844847 * @summary Test the Cipher.update/doFinal(ByteBuffer, ByteBuffer) methods * @author Andreas Sterbenz + * @key randomness */ import java.util.*; diff --git a/jdk/test/javax/crypto/CipherSpi/DirectBBRemaining.java b/jdk/test/javax/crypto/CipherSpi/DirectBBRemaining.java index 9cc840664c0..9e03c908660 100644 --- a/jdk/test/javax/crypto/CipherSpi/DirectBBRemaining.java +++ b/jdk/test/javax/crypto/CipherSpi/DirectBBRemaining.java @@ -26,6 +26,7 @@ * @bug 7142509 * @summary Cipher.doFinal(ByteBuffer,ByteBuffer) fails to * process when in.remaining() == 0 + * @key randomness */ import java.nio.ByteBuffer; diff --git a/jdk/test/javax/crypto/CryptoPermission/AllPermCheck.java b/jdk/test/javax/crypto/CryptoPermission/AllPermCheck.java index 3359fcd88e2..d7a1ad40e39 100644 --- a/jdk/test/javax/crypto/CryptoPermission/AllPermCheck.java +++ b/jdk/test/javax/crypto/CryptoPermission/AllPermCheck.java @@ -28,6 +28,7 @@ * InvalidKeyException is thrown instead of SecurityException when * crypto permssion checks failed. * @author Valerie Peng + * @key randomness */ import java.io.*; diff --git a/jdk/test/javax/crypto/CryptoPermission/RC2PermCheck.java b/jdk/test/javax/crypto/CryptoPermission/RC2PermCheck.java index a4270802fe5..fc49baec11e 100644 --- a/jdk/test/javax/crypto/CryptoPermission/RC2PermCheck.java +++ b/jdk/test/javax/crypto/CryptoPermission/RC2PermCheck.java @@ -27,6 +27,7 @@ * @summary Ensure the crypto permission check on cipher algorithms * with restricted parameter values are correctly enforced. * @author Valerie Peng + * @key randomness */ import java.io.*; diff --git a/jdk/test/javax/crypto/JceSecurity/SunJCE_BC_LoadOrdering.java b/jdk/test/javax/crypto/JceSecurity/SunJCE_BC_LoadOrdering.java index c2991bbcc07..50a1c188d0f 100644 --- a/jdk/test/javax/crypto/JceSecurity/SunJCE_BC_LoadOrdering.java +++ b/jdk/test/javax/crypto/JceSecurity/SunJCE_BC_LoadOrdering.java @@ -28,6 +28,7 @@ * @summary SunJCE depends on sun.security.provider.SignatureImpl * behaviour, BC can't load into 1st slot. * @author Brad R. Wetmore + * @key randomness */ import java.security.*; diff --git a/jdk/test/javax/crypto/KeyGenerator/TestKGParity.java b/jdk/test/javax/crypto/KeyGenerator/TestKGParity.java index 40752152c56..cb512274bf8 100644 --- a/jdk/test/javax/crypto/KeyGenerator/TestKGParity.java +++ b/jdk/test/javax/crypto/KeyGenerator/TestKGParity.java @@ -35,6 +35,7 @@ import static java.lang.System.out; * @bug 8048607 * @compile ../../../com/sun/crypto/provider/Cipher/DES/TestUtility.java * @summary Test key generation of DES and DESEDE + * @key randomness */ public class TestKGParity { diff --git a/jdk/test/javax/crypto/Mac/ByteBuffers.java b/jdk/test/javax/crypto/Mac/ByteBuffers.java index 96070881715..a00e5a43cd6 100644 --- a/jdk/test/javax/crypto/Mac/ByteBuffers.java +++ b/jdk/test/javax/crypto/Mac/ByteBuffers.java @@ -26,6 +26,7 @@ * @bug 4844847 * @summary Test the Mac.update(ByteBuffer) method * @author Andreas Sterbenz + * @key randomness */ import java.util.*; diff --git a/jdk/test/javax/crypto/NullCipher/TestNPE.java b/jdk/test/javax/crypto/NullCipher/TestNPE.java index 45aa81ac78e..0e216d0226d 100644 --- a/jdk/test/javax/crypto/NullCipher/TestNPE.java +++ b/jdk/test/javax/crypto/NullCipher/TestNPE.java @@ -26,6 +26,7 @@ * @bug 4937853 * @summary Make sure normal calls of NullCipher does not throw NPE. * @author Valerie Peng + * @key randomness */ import java.util.Arrays; import java.security.AlgorithmParameters; diff --git a/jdk/test/javax/management/monitor/MultiMonitorTest.java b/jdk/test/javax/management/monitor/MultiMonitorTest.java index 93bba22553f..fe40f63d8ff 100644 --- a/jdk/test/javax/management/monitor/MultiMonitorTest.java +++ b/jdk/test/javax/management/monitor/MultiMonitorTest.java @@ -29,6 +29,7 @@ * @run clean MultiMonitorTest * @run build MultiMonitorTest * @run main MultiMonitorTest + * @key randomness */ import java.util.*; diff --git a/jdk/test/javax/management/mxbean/ThreadMXBeanTest.java b/jdk/test/javax/management/mxbean/ThreadMXBeanTest.java index f533f340b50..d2ca6a90102 100644 --- a/jdk/test/javax/management/mxbean/ThreadMXBeanTest.java +++ b/jdk/test/javax/management/mxbean/ThreadMXBeanTest.java @@ -29,6 +29,7 @@ * @run clean ThreadMXBeanTest * @run build ThreadMXBeanTest * @run main ThreadMXBeanTest + * @key randomness */ import java.lang.management.*; diff --git a/jdk/test/javax/management/remote/mandatory/loading/MissingClassTest.java b/jdk/test/javax/management/remote/mandatory/loading/MissingClassTest.java index 341bbfc5249..c6e212cf924 100644 --- a/jdk/test/javax/management/remote/mandatory/loading/MissingClassTest.java +++ b/jdk/test/javax/management/remote/mandatory/loading/MissingClassTest.java @@ -29,6 +29,7 @@ * @run clean MissingClassTest SingleClassLoader * @run build MissingClassTest SingleClassLoader * @run main MissingClassTest + * @key randomness */ /* diff --git a/jdk/test/javax/management/timer/MissingNotificationTest.java b/jdk/test/javax/management/timer/MissingNotificationTest.java index 39da6cb1098..9fedc74024b 100644 --- a/jdk/test/javax/management/timer/MissingNotificationTest.java +++ b/jdk/test/javax/management/timer/MissingNotificationTest.java @@ -29,6 +29,7 @@ * @run clean MissingNotificationTest * @run build MissingNotificationTest * @run main MissingNotificationTest + * @key randomness */ import java.util.Date; diff --git a/jdk/test/javax/net/ssl/SSLEngine/LargeBufs.java b/jdk/test/javax/net/ssl/SSLEngine/LargeBufs.java index 2eb940ed818..f63db4c98c9 100644 --- a/jdk/test/javax/net/ssl/SSLEngine/LargeBufs.java +++ b/jdk/test/javax/net/ssl/SSLEngine/LargeBufs.java @@ -33,6 +33,7 @@ * @run main/othervm -Djsse.enableCBCProtection=false LargeBufs * * @author Brad R. Wetmore + * @key randomness */ import javax.net.ssl.*; diff --git a/jdk/test/javax/smartcardio/TestCommandAPDU.java b/jdk/test/javax/smartcardio/TestCommandAPDU.java index 93517ea79de..543fcea2487 100644 --- a/jdk/test/javax/smartcardio/TestCommandAPDU.java +++ b/jdk/test/javax/smartcardio/TestCommandAPDU.java @@ -26,6 +26,7 @@ * @bug 6293767 * @summary Test for the CommandAPDU class * @author Andreas Sterbenz + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java index 59f947b756c..de5e9b6bbcd 100644 --- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java +++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java @@ -60,6 +60,7 @@ import sun.management.AgentConfigurationError; * @run main/othervm/timeout=600 -XX:+UsePerfData JMXStartStopTest * @summary Makes sure that enabling/disabling the management agent through JCMD * achieves the desired results + * @key randomness */ public class JMXStartStopTest { diff --git a/jdk/test/sun/misc/CopyMemory.java b/jdk/test/sun/misc/CopyMemory.java index 6ddcbc81d71..89266ed052d 100644 --- a/jdk/test/sun/misc/CopyMemory.java +++ b/jdk/test/sun/misc/CopyMemory.java @@ -24,6 +24,7 @@ /* @test * @bug 6565543 * @summary Minimal test for unsafe.copyMemory() and unsafe.setMemory() + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/misc/FloatingDecimal/TestFloatingDecimal.java b/jdk/test/sun/misc/FloatingDecimal/TestFloatingDecimal.java index b04545a65f3..23e97d7421c 100644 --- a/jdk/test/sun/misc/FloatingDecimal/TestFloatingDecimal.java +++ b/jdk/test/sun/misc/FloatingDecimal/TestFloatingDecimal.java @@ -62,6 +62,7 @@ public class sun.misc.FloatingDecimal { * @build DoubleConsts FloatConsts * @run main TestFloatingDecimal * @author Brian Burkhalter + * @key randomness */ public class TestFloatingDecimal { private static enum ResultType { diff --git a/jdk/test/sun/net/www/ParseUtil_4922813.java b/jdk/test/sun/net/www/ParseUtil_4922813.java index 5646039b651..3dd5503af08 100644 --- a/jdk/test/sun/net/www/ParseUtil_4922813.java +++ b/jdk/test/sun/net/www/ParseUtil_4922813.java @@ -24,6 +24,7 @@ /* @test @bug 4922813 @summary Check the new impl of encodePath will not cause regression + @key randomness */ import java.util.BitSet; diff --git a/jdk/test/sun/nio/cs/FindDecoderBugs.java b/jdk/test/sun/nio/cs/FindDecoderBugs.java index 8c1fd910f5b..df8afd18960 100644 --- a/jdk/test/sun/nio/cs/FindDecoderBugs.java +++ b/jdk/test/sun/nio/cs/FindDecoderBugs.java @@ -27,6 +27,7 @@ * @summary Decode many byte sequences in many ways * @run main/timeout=1800 FindDecoderBugs * @author Martin Buchholz + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/nio/cs/FindEncoderBugs.java b/jdk/test/sun/nio/cs/FindEncoderBugs.java index ecd63065980..bfef4037ec4 100644 --- a/jdk/test/sun/nio/cs/FindEncoderBugs.java +++ b/jdk/test/sun/nio/cs/FindEncoderBugs.java @@ -27,6 +27,7 @@ * @summary Encode many char sequences in many ways * @run main/timeout=1200 FindEncoderBugs * @author Martin Buchholz + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/nio/cs/TestStringCoding.java b/jdk/test/sun/nio/cs/TestStringCoding.java index aaee1bcd2e3..7c18a3596c6 100644 --- a/jdk/test/sun/nio/cs/TestStringCoding.java +++ b/jdk/test/sun/nio/cs/TestStringCoding.java @@ -25,6 +25,7 @@ @bug 6636323 6636319 7040220 7096080 7183053 @summary Test if StringCoding and NIO result have the same de/encoding result * @run main/othervm/timeout=2000 TestStringCoding + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/nio/cs/TestStringCodingUTF8.java b/jdk/test/sun/nio/cs/TestStringCodingUTF8.java index d1f69950684..b936838ea13 100644 --- a/jdk/test/sun/nio/cs/TestStringCodingUTF8.java +++ b/jdk/test/sun/nio/cs/TestStringCodingUTF8.java @@ -25,6 +25,7 @@ @bug 7040220 @summary Test if StringCoding and NIO result have the same de/encoding result for UTF-8 * @run main/othervm/timeout=2000 TestStringCodingUTF8 + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/mscapi/PrngSlow.java b/jdk/test/sun/security/mscapi/PrngSlow.java index f9001eea80d..3420cc6b2a1 100644 --- a/jdk/test/sun/security/mscapi/PrngSlow.java +++ b/jdk/test/sun/security/mscapi/PrngSlow.java @@ -25,6 +25,7 @@ * @test * @bug 6449335 * @summary MSCAPI's PRNG is too slow + * @key randomness */ import java.security.SecureRandom; diff --git a/jdk/test/sun/security/pkcs11/Cipher/ReinitCipher.java b/jdk/test/sun/security/pkcs11/Cipher/ReinitCipher.java index 9c87ce2b503..2cd68b44a9b 100644 --- a/jdk/test/sun/security/pkcs11/Cipher/ReinitCipher.java +++ b/jdk/test/sun/security/pkcs11/Cipher/ReinitCipher.java @@ -27,6 +27,7 @@ * @summary * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/Cipher/TestRSACipher.java b/jdk/test/sun/security/pkcs11/Cipher/TestRSACipher.java index 4f27ff5de0c..876048f46cf 100644 --- a/jdk/test/sun/security/pkcs11/Cipher/TestRSACipher.java +++ b/jdk/test/sun/security/pkcs11/Cipher/TestRSACipher.java @@ -27,6 +27,7 @@ * @summary basic test for RSA cipher * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/Cipher/TestRawRSACipher.java b/jdk/test/sun/security/pkcs11/Cipher/TestRawRSACipher.java index d1dd0206031..17ffe9553c2 100644 --- a/jdk/test/sun/security/pkcs11/Cipher/TestRawRSACipher.java +++ b/jdk/test/sun/security/pkcs11/Cipher/TestRawRSACipher.java @@ -27,6 +27,7 @@ * @summary basic test for RSA/ECB/NoPadding cipher * @author Valerie Peng * @library .. + * @key randomness */ import javax.crypto.*; diff --git a/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphers.java b/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphers.java index 14e41cdddd2..e6b7f7d8a34 100644 --- a/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphers.java +++ b/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphers.java @@ -22,11 +22,12 @@ */ /** - * @test %I% %E% + * @test * @bug 4898461 6604496 * @summary basic test for symmetric ciphers with padding * @author Valerie Peng * @library .. + * @key randomness */ import java.io.*; import java.nio.*; diff --git a/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java b/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java index a8b71a30a4d..07d48649be5 100644 --- a/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java +++ b/jdk/test/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java @@ -27,6 +27,7 @@ * @summary basic test for symmetric ciphers with no padding * @author Valerie Peng * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/KeyGenerator/DESParity.java b/jdk/test/sun/security/pkcs11/KeyGenerator/DESParity.java index 33ef9eb1749..2d7f77bc9c5 100644 --- a/jdk/test/sun/security/pkcs11/KeyGenerator/DESParity.java +++ b/jdk/test/sun/security/pkcs11/KeyGenerator/DESParity.java @@ -27,6 +27,7 @@ * @summary Verify that the parity bits are set correctly * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/Mac/MacSameTest.java b/jdk/test/sun/security/pkcs11/Mac/MacSameTest.java index f5e2787e609..21eae39b0c6 100644 --- a/jdk/test/sun/security/pkcs11/Mac/MacSameTest.java +++ b/jdk/test/sun/security/pkcs11/Mac/MacSameTest.java @@ -37,6 +37,7 @@ import javax.crypto.spec.SecretKeySpec; * @author Yu-Ching Valerie Peng, Bill Situ, Alexander Fomin * @library .. * @run main MacSameTest + * @key randomness */ public class MacSameTest extends PKCS11Test { diff --git a/jdk/test/sun/security/pkcs11/Mac/ReinitMac.java b/jdk/test/sun/security/pkcs11/Mac/ReinitMac.java index 0466330572a..68bef343889 100644 --- a/jdk/test/sun/security/pkcs11/Mac/ReinitMac.java +++ b/jdk/test/sun/security/pkcs11/Mac/ReinitMac.java @@ -27,6 +27,7 @@ * @summary * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/MessageDigest/ByteBuffers.java b/jdk/test/sun/security/pkcs11/MessageDigest/ByteBuffers.java index 49b3c9c8337..1b502a95bcf 100644 --- a/jdk/test/sun/security/pkcs11/MessageDigest/ByteBuffers.java +++ b/jdk/test/sun/security/pkcs11/MessageDigest/ByteBuffers.java @@ -27,6 +27,7 @@ * @summary Test the MessageDigest.update(ByteBuffer) method * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/MessageDigest/ReinitDigest.java b/jdk/test/sun/security/pkcs11/MessageDigest/ReinitDigest.java index 417b4c28d77..2f8290a2a7a 100644 --- a/jdk/test/sun/security/pkcs11/MessageDigest/ReinitDigest.java +++ b/jdk/test/sun/security/pkcs11/MessageDigest/ReinitDigest.java @@ -27,6 +27,7 @@ * @summary * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/MessageDigest/TestCloning.java b/jdk/test/sun/security/pkcs11/MessageDigest/TestCloning.java index c998e8092e0..5ea2264109f 100644 --- a/jdk/test/sun/security/pkcs11/MessageDigest/TestCloning.java +++ b/jdk/test/sun/security/pkcs11/MessageDigest/TestCloning.java @@ -27,6 +27,7 @@ * @summary Ensure the cloning functionality works. * @author Valerie Peng * @library .. + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/Secmod/AddPrivateKey.java b/jdk/test/sun/security/pkcs11/Secmod/AddPrivateKey.java index c99c498946d..a42ca861396 100644 --- a/jdk/test/sun/security/pkcs11/Secmod/AddPrivateKey.java +++ b/jdk/test/sun/security/pkcs11/Secmod/AddPrivateKey.java @@ -28,6 +28,7 @@ * @author Andreas Sterbenz * @library .. * @run main/othervm AddPrivateKey + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/Secmod/Crypto.java b/jdk/test/sun/security/pkcs11/Secmod/Crypto.java index c44ab87835f..39465f794d1 100644 --- a/jdk/test/sun/security/pkcs11/Secmod/Crypto.java +++ b/jdk/test/sun/security/pkcs11/Secmod/Crypto.java @@ -28,6 +28,7 @@ * @author Andreas Sterbenz * @library .. * @run main/othervm Crypto + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/Secmod/GetPrivateKey.java b/jdk/test/sun/security/pkcs11/Secmod/GetPrivateKey.java index a41bef9c77e..2dd1ce69056 100644 --- a/jdk/test/sun/security/pkcs11/Secmod/GetPrivateKey.java +++ b/jdk/test/sun/security/pkcs11/Secmod/GetPrivateKey.java @@ -28,6 +28,7 @@ * @author Andreas Sterbenz * @library .. * @run main/othervm GetPrivateKey + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/SecureRandom/Basic.java b/jdk/test/sun/security/pkcs11/SecureRandom/Basic.java index 63ebcb4750b..f9bfb1759ef 100644 --- a/jdk/test/sun/security/pkcs11/SecureRandom/Basic.java +++ b/jdk/test/sun/security/pkcs11/SecureRandom/Basic.java @@ -27,6 +27,7 @@ * @summary basic test for PKCS#11 SecureRandom * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/Signature/ByteBuffers.java b/jdk/test/sun/security/pkcs11/Signature/ByteBuffers.java index 31ae86c9a5e..8a76866f73f 100644 --- a/jdk/test/sun/security/pkcs11/Signature/ByteBuffers.java +++ b/jdk/test/sun/security/pkcs11/Signature/ByteBuffers.java @@ -27,6 +27,7 @@ * @summary Test the Signature.update(ByteBuffer) method * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/Signature/ReinitSignature.java b/jdk/test/sun/security/pkcs11/Signature/ReinitSignature.java index 36f80f3436e..d5ace8b9602 100644 --- a/jdk/test/sun/security/pkcs11/Signature/ReinitSignature.java +++ b/jdk/test/sun/security/pkcs11/Signature/ReinitSignature.java @@ -27,6 +27,7 @@ * @summary test that reinitializing Signatures works correctly * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/Signature/TestDSA.java b/jdk/test/sun/security/pkcs11/Signature/TestDSA.java index c7845ae4831..9f8c099f4c2 100644 --- a/jdk/test/sun/security/pkcs11/Signature/TestDSA.java +++ b/jdk/test/sun/security/pkcs11/Signature/TestDSA.java @@ -27,6 +27,7 @@ * @summary basic test of SHA1withDSA and RawDSA signing/verifying * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/Signature/TestDSAKeyLength.java b/jdk/test/sun/security/pkcs11/Signature/TestDSAKeyLength.java index 89b2b7a1c18..0287e7d028f 100644 --- a/jdk/test/sun/security/pkcs11/Signature/TestDSAKeyLength.java +++ b/jdk/test/sun/security/pkcs11/Signature/TestDSAKeyLength.java @@ -26,6 +26,7 @@ * @summary verify that P11Signature impl will error out when initialized * with unsupported key sizes * @library .. + * @key randomness */ diff --git a/jdk/test/sun/security/pkcs11/ec/ReadPKCS12.java b/jdk/test/sun/security/pkcs11/ec/ReadPKCS12.java index 930e0625b43..112470509fe 100644 --- a/jdk/test/sun/security/pkcs11/ec/ReadPKCS12.java +++ b/jdk/test/sun/security/pkcs11/ec/ReadPKCS12.java @@ -28,6 +28,7 @@ * @author Andreas Sterbenz * @library .. * @library ../../../../java/security/testlibrary + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/ec/TestCurves.java b/jdk/test/sun/security/pkcs11/ec/TestCurves.java index de53e2147fc..fb9cd836ad6 100644 --- a/jdk/test/sun/security/pkcs11/ec/TestCurves.java +++ b/jdk/test/sun/security/pkcs11/ec/TestCurves.java @@ -29,6 +29,7 @@ * @library .. * @compile -XDignore.symbol.file TestCurves.java * @run main TestCurves + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/ec/TestECDSA.java b/jdk/test/sun/security/pkcs11/ec/TestECDSA.java index 98dd939eaec..b811b44c6ef 100644 --- a/jdk/test/sun/security/pkcs11/ec/TestECDSA.java +++ b/jdk/test/sun/security/pkcs11/ec/TestECDSA.java @@ -28,6 +28,7 @@ * @author Andreas Sterbenz * @library .. * @library ../../../../java/security/testlibrary + * @key randomness */ import java.util.*; diff --git a/jdk/test/sun/security/pkcs11/rsa/KeyWrap.java b/jdk/test/sun/security/pkcs11/rsa/KeyWrap.java index ed31aa203fc..7f08481d6f7 100644 --- a/jdk/test/sun/security/pkcs11/rsa/KeyWrap.java +++ b/jdk/test/sun/security/pkcs11/rsa/KeyWrap.java @@ -27,6 +27,7 @@ * @summary Verify key wrapping (of extractable keys) works for RSA/PKCS1 * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java b/jdk/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java index 89ca783dc50..b5aa442cce7 100644 --- a/jdk/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java +++ b/jdk/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java @@ -28,7 +28,7 @@ * @author Andreas Sterbenz * @library .. * @run main/othervm TestKeyPairGenerator - * @key intermittent + * @key intermittent randomness */ import java.io.*; diff --git a/jdk/test/sun/security/pkcs11/rsa/TestSignatures.java b/jdk/test/sun/security/pkcs11/rsa/TestSignatures.java index fd11d0cb67b..b27de0a9b77 100644 --- a/jdk/test/sun/security/pkcs11/rsa/TestSignatures.java +++ b/jdk/test/sun/security/pkcs11/rsa/TestSignatures.java @@ -27,6 +27,7 @@ * @summary Test signing/verifying using all the signature algorithms * @author Andreas Sterbenz * @library .. + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/provider/DSA/TestDSA.java b/jdk/test/sun/security/provider/DSA/TestDSA.java index 197841bb0e1..d730b69f6cb 100644 --- a/jdk/test/sun/security/provider/DSA/TestDSA.java +++ b/jdk/test/sun/security/provider/DSA/TestDSA.java @@ -26,6 +26,7 @@ * @bug 4815057 4839277 * @summary basic test of SHA1withDSA and RawDSA signing/verifying * @author Andreas Sterbenz + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/provider/DSA/TestDSA2.java b/jdk/test/sun/security/provider/DSA/TestDSA2.java index 600161d00f7..00691535ac1 100644 --- a/jdk/test/sun/security/provider/DSA/TestDSA2.java +++ b/jdk/test/sun/security/provider/DSA/TestDSA2.java @@ -26,6 +26,7 @@ * @run main/othervm/timeout=250 TestDSA2 * @summary verify that DSA signature works using SHA and SHA-224 and * SHA-256 digests. + * @key randomness */ diff --git a/jdk/test/sun/security/provider/SeedGenerator/Priority_Inversion.java b/jdk/test/sun/security/provider/SeedGenerator/Priority_Inversion.java index e41e2816142..857e55ceab9 100644 --- a/jdk/test/sun/security/provider/SeedGenerator/Priority_Inversion.java +++ b/jdk/test/sun/security/provider/SeedGenerator/Priority_Inversion.java @@ -29,6 +29,7 @@ * * if the test returns, then it passed. * if the test never returns (hangs forever), then it failed. + * @key randomness */ import java.security.SecureRandom; diff --git a/jdk/test/sun/security/rsa/TestKeyPairGenerator.java b/jdk/test/sun/security/rsa/TestKeyPairGenerator.java index 5e661b08ef1..1d7d1b82e2d 100644 --- a/jdk/test/sun/security/rsa/TestKeyPairGenerator.java +++ b/jdk/test/sun/security/rsa/TestKeyPairGenerator.java @@ -26,6 +26,7 @@ * @bug 4853305 4865198 4888410 4963723 * @summary Verify that the RSA KeyPairGenerator works * @author Andreas Sterbenz + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/rsa/TestSignatures.java b/jdk/test/sun/security/rsa/TestSignatures.java index 1933f264295..f3b613f88ba 100644 --- a/jdk/test/sun/security/rsa/TestSignatures.java +++ b/jdk/test/sun/security/rsa/TestSignatures.java @@ -26,6 +26,7 @@ * @bug 4853305 4963723 * @summary Test signing/verifying using all the signature algorithms * @author Andreas Sterbenz + * @key randomness */ import java.io.*; diff --git a/jdk/test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java b/jdk/test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java index 2d4940ac378..aaaaddff950 100644 --- a/jdk/test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java +++ b/jdk/test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java @@ -27,6 +27,7 @@ * @summary Vectors and fixed length fields should be verified * for allowed sizes. * @run main/othervm LengthCheckTest + * @key randomness */ /** diff --git a/jdk/test/sun/security/ssl/GenSSLConfigs/main.java b/jdk/test/sun/security/ssl/GenSSLConfigs/main.java index 13460595a81..0bfd59d8823 100644 --- a/jdk/test/sun/security/ssl/GenSSLConfigs/main.java +++ b/jdk/test/sun/security/ssl/GenSSLConfigs/main.java @@ -3,6 +3,7 @@ * @build TestThread Traffic Handler ServerHandler ServerThread ClientThread * @run main/othervm/timeout=140 -Djsse.enableCBCProtection=false main * @summary Make sure that different configurations of SSL sockets work + * @key randomness */ /*