< prev index next >

test/java/io/Serializable/maskSyntheticModifier/run.sh

Print this page
rev 1541 : 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
Contributed-by: Mark Sheppard <mark.sheppard@oracle.com>


  24 # @test
  25 # @bug 4897937
  26 # @summary Verify that the presence of the JVM_ACC_SYNTHETIC bit in the
  27 #          modifiers of fields and methods does not affect default
  28 #          serialVersionUID calculation.
  29 
  30 if [ "${TESTJAVA}" = "" ]
  31 then
  32         echo "TESTJAVA not set.  Test cannot execute.  Failed."
  33 exit 1
  34 fi
  35 
  36 if [ "${TESTSRC}" = "" ]
  37 then
  38         TESTSRC="."
  39 fi
  40 
  41 set -ex
  42 cp ${TESTSRC}/Foo.class .
  43 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Test.java
  44 ${TESTJAVA}/bin/java Test
  45 rm -f *.class


  24 # @test
  25 # @bug 4897937
  26 # @summary Verify that the presence of the JVM_ACC_SYNTHETIC bit in the
  27 #          modifiers of fields and methods does not affect default
  28 #          serialVersionUID calculation.
  29 
  30 if [ "${TESTJAVA}" = "" ]
  31 then
  32         echo "TESTJAVA not set.  Test cannot execute.  Failed."
  33 exit 1
  34 fi
  35 
  36 if [ "${TESTSRC}" = "" ]
  37 then
  38         TESTSRC="."
  39 fi
  40 
  41 set -ex
  42 cp ${TESTSRC}/Foo.class .
  43 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Test.java
  44 ${TESTJAVA}/bin/java ${TESTVMOPTS} Test
  45 rm -f *.class
< prev index next >