test/java/lang/annotation/loaderLeak/LoaderLeak.sh

Print this page




  32   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  33   exit 1
  34 fi
  35 echo "TESTJAVA=${TESTJAVA}"
  36 if [ "${TESTCLASSES}" = "" ]
  37 then
  38   echo "TESTCLASSES not set.  Test cannot execute.  Failed."
  39   exit 1
  40 fi
  41 echo "TESTCLASSES=${TESTCLASSES}"
  42 echo "CLASSPATH=${CLASSPATH}"
  43 
  44 # set platform-dependent variables
  45 OS=`uname -s`
  46 case "$OS" in
  47   SunOS | Linux )
  48     NULL=/dev/null
  49     PS=":"
  50     FS="/"
  51     ;;
  52   Windows* )
  53     NULL=NUL
  54     PS=";"
  55     FS="\\"
  56     ;;
  57   * )
  58     echo "Unrecognized system!"
  59     exit 1;
  60     ;;
  61 esac
  62 
  63 mkdir -p classes
  64 cp ${TESTSRC}${FS}*.java .
  65 ${TESTJAVA}${FS}bin${FS}javac -d classes A.java B.java C.java
  66 ${TESTJAVA}${FS}bin${FS}javac Main.java
  67 ${TESTJAVA}${FS}bin${FS}java Main
  68 result=$?
  69 if [ $result -eq 0 ]
  70 then
  71   echo "Passed 1 of 2"
  72 else


  32   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  33   exit 1
  34 fi
  35 echo "TESTJAVA=${TESTJAVA}"
  36 if [ "${TESTCLASSES}" = "" ]
  37 then
  38   echo "TESTCLASSES not set.  Test cannot execute.  Failed."
  39   exit 1
  40 fi
  41 echo "TESTCLASSES=${TESTCLASSES}"
  42 echo "CLASSPATH=${CLASSPATH}"
  43 
  44 # set platform-dependent variables
  45 OS=`uname -s`
  46 case "$OS" in
  47   SunOS | Linux )
  48     NULL=/dev/null
  49     PS=":"
  50     FS="/"
  51     ;;
  52   Windows* | CYGWIN* )
  53     NULL=NUL
  54     PS=";"
  55     FS="\\"
  56     ;;
  57   * )
  58     echo "Unrecognized system!"
  59     exit 1;
  60     ;;
  61 esac
  62 
  63 mkdir -p classes
  64 cp ${TESTSRC}${FS}*.java .
  65 ${TESTJAVA}${FS}bin${FS}javac -d classes A.java B.java C.java
  66 ${TESTJAVA}${FS}bin${FS}javac Main.java
  67 ${TESTJAVA}${FS}bin${FS}java Main
  68 result=$?
  69 if [ $result -eq 0 ]
  70 then
  71   echo "Passed 1 of 2"
  72 else