annotate test/compiler/6894807/Test6894807.sh @ 3606:5d2156bcb78b

7195789: NPG: assert(used + free == capacity) failed: Accounting is wrong Reviewed-by: coleenp, jcoomes
author jmasa
date Tue, 04 Sep 2012 16:20:28 -0700
parents 6acee021f5ac
children
rev   line source
asaha@1639 1 #!/bin/sh
asaha@1639 2
asaha@1639 3 if [ "${TESTSRC}" = "" ]
asaha@1639 4 then TESTSRC=.
asaha@1639 5 fi
asaha@1639 6
asaha@1639 7 if [ "${TESTJAVA}" = "" ]
asaha@1639 8 then
asaha@1639 9 PARENT=`dirname \`which java\``
asaha@1639 10 TESTJAVA=`dirname ${PARENT}`
asaha@1639 11 echo "TESTJAVA not set, selecting " ${TESTJAVA}
asaha@1639 12 echo "If this is incorrect, try setting the variable manually."
asaha@1639 13 fi
asaha@1639 14
asaha@1639 15 if [ "${TESTCLASSES}" = "" ]
asaha@1639 16 then
asaha@1639 17 echo "TESTCLASSES not set. Test cannot execute. Failed."
asaha@1639 18 exit 1
asaha@1639 19 fi
asaha@1639 20
asaha@1639 21 # set platform-dependent variables
asaha@1639 22 OS=`uname -s`
asaha@1639 23 case "$OS" in
coleenp@3550 24 SunOS | Linux | Darwin )
asaha@1639 25 NULL=/dev/null
asaha@1639 26 PS=":"
asaha@1639 27 FS="/"
asaha@1639 28 ;;
asaha@1639 29 Windows_* )
asaha@1639 30 NULL=NUL
asaha@1639 31 PS=";"
asaha@1639 32 FS="\\"
asaha@1639 33 ;;
coleenp@3587 34 CYGWIN_* )
coleenp@3587 35 NULL=/dev/null
coleenp@3587 36 PS=";"
coleenp@3587 37 FS="/"
coleenp@3587 38 ;;
asaha@1639 39 * )
asaha@1639 40 echo "Unrecognized system!"
asaha@1639 41 exit 1;
asaha@1639 42 ;;
asaha@1639 43 esac
asaha@1639 44
asaha@1639 45 JEMMYPATH=${CPAPPEND}
asaha@1639 46 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH
asaha@1639 47
asaha@1639 48 THIS_DIR=`pwd`
asaha@1639 49
kevinw@3342 50 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version
asaha@1639 51
kevinw@3342 52 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} IsInstanceTest > test.out 2>&1
asaha@1639 53
asaha@1639 54 cat test.out
asaha@1639 55
asaha@1639 56 grep "Failed at index" test.out
asaha@1639 57
asaha@1639 58 if [ $? = 0 ]
asaha@1639 59 then
asaha@1639 60 echo "Test Failed"
asaha@1639 61 exit 1
asaha@1639 62 else
asaha@1639 63 echo "Test Passed"
asaha@1639 64 exit 0
asaha@1639 65 fi