8078334: Mark regression tests using randomness

Reviewed-by: xuelei, alanb
This commit is contained in:
Joe Darcy 2015-04-29 10:25:53 -07:00
parent 84bc5a8a04
commit 86c109e149
241 changed files with 258 additions and 9 deletions

View File

@ -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

View File

@ -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;

View File

@ -25,6 +25,7 @@
* @test
* @bug 7088989 8014374
* @summary Ensure the AES ciphers of OracleUcrypto provider works correctly
* @key randomness
*/
import java.io.*;

View File

@ -26,6 +26,7 @@
* @bug 8014374
* @summary Test basic CipherInputStream/OutputStream func w/ GCM mode.
* @author Valerie Peng
* @key randomness
*/
import java.security.*;

View File

@ -26,6 +26,7 @@
* @bug 8014374
* @summary Test CipherInputStream/OutputStream func w/ GCM mode and AAD.
* @author Valerie Peng
* @key randomness
*/
import java.io.*;

View File

@ -25,6 +25,7 @@
* @test
* @bug 7088989
* @summary Ensure the various message digests works correctly
* @key randomness
*/
import java.io.*;

View File

@ -25,6 +25,7 @@
* @test
* @bug 8014374
* @summary Ensure key wrap/unwrap works using AES/GCM/NoPadding
* @key randomness
*/
import java.io.*;

View File

@ -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";

View File

@ -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 {

View File

@ -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 {

View File

@ -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.*;

View File

@ -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.*;

View File

@ -43,6 +43,7 @@ import javax.crypto.spec.IvParameterSpec;
* doesn't use IV).
* @author Liwen Wang
* @author Parag Salvi
* @key randomness
*/
public class TestAESCipher {

View File

@ -29,6 +29,7 @@
* @run main TestCICOWithGCM
* @summary Test CipherInputStream/OutputStream with AES GCM mode.
* @author Valerie Peng
* @key randomness
*/
import java.security.*;

View File

@ -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.*;

View File

@ -26,6 +26,7 @@
* @bug 4921443
* @summary Ensure ISO10126Padding works correctly.
* @author Valerie Peng
* @key randomness
*/
import java.util.Arrays;
import java.security.*;

View File

@ -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 {

View File

@ -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 {

View File

@ -26,6 +26,7 @@
* @bug 0000000
* @summary FlushBug
* @author Jan Luehe
* @key randomness
*/
import java.io.*;
import java.security.*;

View File

@ -45,6 +45,7 @@ import javax.crypto.spec.PBEParameterSpec;
* @author Bill Situ
* @author Alexander Fomin
* @run main PBESealedObject
* @key randomness
*/
public class PBESealedObject {

View File

@ -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 {

View File

@ -27,6 +27,7 @@
* @summary basic test for PBEWithSHA1AndDESede, PBEWithSHA1AndRC2_40/128
* and PBEWithSHA1AndRC4_40/128
* @author Valerie Peng
* @key randomness
*/
import java.io.*;

View File

@ -45,6 +45,7 @@ import javax.crypto.spec.PBEParameterSpec;
* @author Bill Situ
* @author Yun Ke
* @run main TestCipherKeyWrapperPBEKey
* @key randomness
*/
public class TestCipherKeyWrapperPBEKey {

View File

@ -26,6 +26,7 @@
* @bug 4894151
* @summary encryption/decryption test for OAEP
* @author Andreas Sterbenz
* @key randomness
*/
import java.util.*;

View File

@ -26,6 +26,7 @@
* @bug 4853306
* @summary Test RSA Cipher implementation
* @author Andreas Sterbenz
* @key randomness
*/
import java.io.*;

View File

@ -27,6 +27,7 @@
* @summary ensures various salt lengths can be used for
* HmacPBESHA1.
* @author Valerie Peng
* @key randomness
*/
import java.io.*;

View File

@ -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 {

View File

@ -27,6 +27,7 @@
* @summary Basic test of ThreadMXBean.getThreadCpuTime(long[]) and
* getThreadUserTime(long[]).
* @author Paul Hohensee
* @key randomness
*/
import java.lang.management.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4806007
* @summary Checks for vague exceptions from writeUTF/readUTF
* @key randomness
*/
import java.io.*;

View File

@ -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;

View File

@ -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 {

View File

@ -24,6 +24,7 @@
/* @test
@bug 4905777
@summary PrintStream.println(Object) oversynchronized, can deadlock
@key randomness
*/
import java.io.PrintStream;

View File

@ -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.*;

View File

@ -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.*;

View File

@ -23,6 +23,7 @@
/* @test
* @summary Verifies basic correct functioning of proxy serialization.
* @key randomness
*/
import java.io.*;

View File

@ -24,6 +24,7 @@
/* @test
* @summary Basic sanity check to test if default (de)serialization is
* transmitting values properly.
* @key randomness
*/
import java.io.*;

View File

@ -26,6 +26,7 @@
* @bug 4329937
* @summary Basic test for making Boolean implement Comparable
* @author Josh Bloch
* @key randomness
*/
import java.util.*;

View File

@ -28,6 +28,7 @@
* @run main/othervm Assert
* @summary Test the assertion facility
* @author Mike McCloskey
* @key randomness
*/
import package1.*;

View File

@ -25,6 +25,7 @@
* @test
* @bug 6582946
* @summary Test the primitive wrappers compare and compareTo methods
* @key randomness
*/
import java.util.Random;

View File

@ -26,6 +26,7 @@
* @bug 4826774
* @summary Numerical tests for hexadecimal inputs to parseDouble, parseFloat
* @author Joseph D. Darcy
* @key randomness
*/

View File

@ -29,6 +29,7 @@
*
* @compile ValueOf.java
* @run main ValueOf
* @key randomness
*/
import java.util.*;

View File

@ -25,6 +25,7 @@
* @test
* @bug 4245470 7088913
* @summary Test the primitive wrappers hashCode()
* @key randomness
*/
import java.util.Objects;

View File

@ -26,6 +26,7 @@
* @bug 4495754
* @summary Basic test for int bit twiddling
* @author Josh Bloch
* @key randomness
*/
import java.util.Random;

View File

@ -26,6 +26,7 @@
* @bug 4495754
* @summary Basic test for long bit twiddling
* @author Josh Bloch
* @key randomness
*/
import java.util.Random;

View File

@ -26,6 +26,7 @@
* @bug 4347132 4939441
* @summary Tests for {Math, StrictMath}.cbrt
* @author Joseph D. Darcy
* @key randomness
*/
public class CubeRootTests {

View File

@ -26,6 +26,7 @@
* @bug 4851638 4939441
* @summary Tests for {Math, StrictMath}.hypot
* @author Joseph D. Darcy
* @key randomness
*/
public class HypotTests {

View File

@ -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 {

View File

@ -26,6 +26,7 @@
* @bug 4851638 4939441
* @summary Tests for {Math, StrictMath}.log1p
* @author Joseph D. Darcy
* @key randomness
*/
public class Log1pTests {

View File

@ -25,6 +25,7 @@
* @bug 5006520
* @summary Check many different ways to run Windows programs
* @author Martin Buchholz
* @key randomness
*/
import java.io.*;

View File

@ -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;

View File

@ -25,6 +25,7 @@
* @test
* @bug 4152868
* @summary test Case Insensitive Comparator in String
* @key randomness
*/
import java.util.*;

View File

@ -25,7 +25,7 @@
* @test
* @bug 4915187
* @summary Test java.lang.String constructor that takes StringBuilder
*
* @key randomness
*/
import java.util.*;

View File

@ -25,6 +25,7 @@
* @test
* @bug 6840246 6559590
* @summary test String.split()
* @key randomness
*/
import java.util.Arrays;
import java.util.Random;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4812591 4705328 5019111
* @summary Test append and insert methods with CharSequence params
* @key randomness
*/
import java.util.Random;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4144267
* @summary Test StringBuffer.append(StringBuffer);
* @key randomness
*/
import java.util.Random;

View File

@ -23,6 +23,7 @@
/* @test
* @bug 6206780
* @summary Test StringBuffer.append(StringBuilder);
* @key randomness
*/
import java.util.Random;

View File

@ -25,6 +25,7 @@
* @test
* @bug 6952330
* @summary Test StringBuffer/StringBuilder capacity handling.
* @key randomness
*/
import java.util.Random;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4162796 4162796
* @summary Test indexOf and lastIndexOf
* @key randomness
*/
import java.util.Random;

View File

@ -25,7 +25,7 @@
* @test
* @bug 4120694
* @summary Test new methods in StringBuffer
*
* @key randomness
*/
import java.lang.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4546734 5007612
* @summary Test StringBuffer.trimToSize
* @key randomness
*/
import java.util.Random;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 6206780
* @summary Test StringBuilder.append(StringBuffer);
* @key randomness
*/
import java.util.Random;

View File

@ -25,6 +25,7 @@
* @test
* @bug 4031762
* @summary Test the primitive wrappers static toString()
* @key randomness
*/
import java.util.Random;

View File

@ -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

View File

@ -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.*;

View File

@ -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<Class<?>> ARGS_CLASSES;

View File

@ -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;

View File

@ -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.*;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -25,6 +25,7 @@
* @bug 4625907
* @summary Testing force()
* @run main/othervm Force
* @key randomness
*/
import java.io.*;

View File

@ -25,6 +25,7 @@
* @bug 4802340
* @summary Testing force(), load() isLoaded() of zero len MBB
* @run main/othervm ZeroMap
* @key randomness
*/
import java.io.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4607272
* @summary Unit test for AsynchronousChannelGroup
* @key randomness
*/
import java.nio.ByteBuffer;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4607272 6842687
* @summary Unit test for AsynchronousChannelGroup
* @key randomness
*/
import java.nio.ByteBuffer;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4607272 6842687
* @summary Unit test for AsynchronousChannelGroup
* @key randomness
*/
import java.nio.channels.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4607272 6822643 6830721 6842687
* @summary Unit test for AsynchronousFileChannel
* @key randomness
*/
import java.nio.file.*;

View File

@ -25,6 +25,7 @@
/* @test
* @bug 4607272 6814948 6842687
* @summary Unit test for AsynchronousFileChannel#lock method
* @key randomness
*/
import java.net.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 6913877
* @summary Stress AsynchronousFileChannel.write
* @key randomness
*/
import java.io.*;

View File

@ -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;

View File

@ -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;

View File

@ -25,6 +25,7 @@
* @bug 4607272
* @summary Test Channels methods for interoperability between streams and
* asynchronous byte channels
* @key randomness
*/
import java.net.*;

View File

@ -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;

View File

@ -25,6 +25,7 @@
* @bug 4313882 4981129
* @summary Unit test for datagram-socket-channel adaptors
* @library ..
* @key randomness
*/
import java.net.*;

View File

@ -27,6 +27,7 @@
* @build MulticastSendReceiveTests NetworkConfiguration
* @run main MulticastSendReceiveTests
* @run main/othervm -Djava.net.preferIPv4Stack=true MulticastSendReceiveTests
* @key randomness
*/
import java.nio.ByteBuffer;

View File

@ -28,6 +28,7 @@
* @build Promiscuous NetworkConfiguration
* @run main Promiscuous
* @run main/othervm -Djava.net.preferIPv4Stack=true Promiscuous
* @key randomness
*/
import java.nio.ByteBuffer;

View File

@ -24,6 +24,7 @@
/*
* @test
* @summary Check that appends are atomic
* @key randomness
*/
import java.io.File;

View File

@ -25,6 +25,7 @@
* @bug 6979009
* @summary Ensure ClosedByInterruptException is thrown when I/O operation
* interrupted by Thread.interrupt
* @key randomness
*/
import java.io.*;

View File

@ -25,6 +25,7 @@
* @bug 4429043 8002180
* @summary Test file mapping with FileChannel
* @run main/othervm MapTest
* @key randomness
*/
import java.io.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4429043 6526860
* @summary Test position method of FileChannel
* @key randomness
*/
import java.io.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4862382 4862408
* @summary Test positional read method of FileChannel
* @key randomness
*/
import java.io.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 4862411
* @summary Test positional write method of FileChannel
* @key randomness
*/
import java.io.*;

View File

@ -25,6 +25,7 @@
* @bug 4563125
* @summary Test size method of FileChannel
* @run main/othervm Size
* @key randomness
*/
import java.io.*;

View File

@ -26,6 +26,7 @@
* 6984545
* @summary Test FileChannel.transferFrom and transferTo
* @library ..
* @key randomness
*/
import java.io.*;

View File

@ -24,6 +24,7 @@
/* @test
* @bug 6191269 6709457 8000330
* @summary Test truncate method of FileChannel
* @key randomness
*/
import java.io.*;

View File

@ -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++) {

View File

@ -22,8 +22,9 @@
*/
/* @test
@bug 4526754
* @bug 4526754
* @summary Test Pipe scattering reads
* @key randomness
*/
import java.nio.channels.*;

View File

@ -23,6 +23,7 @@
/* @test
* @summary Test selection of ready pipe
* @key randomness
*/
import java.io.*;

Some files were not shown because too many files have changed in this diff Show More