Mercurial > hg > truffle
view test/runtime/7020373/Test7020373.sh @ 6623:e8fb566b9466 jdk8-b54
Added tag hs24-b21 for changeset 9e3ae661284d
author | amurillo |
---|---|
date | Fri, 24 Aug 2012 15:51:20 -0700 |
parents | fe94b4e7212b |
children | 83b6305a5638 |
line wrap: on
line source
#!/bin/sh ## ## @test ## @bug 7020373 7055247 7053586 7185550 ## @key cte_test ## @summary JSR rewriting can overflow memory address size variables ## @ignore Ignore it as 7053586 test uses lots of memory. See bug report for detail. ## @run shell Test7020373.sh ## if [ "${TESTSRC}" = "" ] then TESTSRC=. fi if [ "${TESTJAVA}" = "" ] then PARENT=`dirname \`which java\`` TESTJAVA=`dirname ${PARENT}` echo "TESTJAVA not set, selecting " ${TESTJAVA} echo "If this is incorrect, try setting the variable manually." fi if [ "${TESTCLASSES}" = "" ] then echo "TESTCLASSES not set. Test cannot execute. Failed." exit 1 fi # set platform-dependent variables OS=`uname -s` case "$OS" in SunOS | Linux | Darwin ) NULL=/dev/null PS=":" FS="/" ;; Windows_* ) NULL=NUL PS=";" FS="\\" ;; * ) echo "Unrecognized system!" exit 1; ;; esac JEMMYPATH=${CPAPPEND} CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH THIS_DIR=`pwd` ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version ${TESTJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass4000_1 > test.out 2>&1 cat test.out egrep "SIGSEGV|An unexpected error has been detected" test.out if [ $? = 0 ] then echo "Test Failed" exit 1 else egrep "java.lang.LinkageError|java.lang.NoSuchMethodError|Main method not found in class OOMCrashClass4000_1|insufficient memory" test.out if [ $? = 0 ] then echo "Test Passed" exit 0 else echo "Test Failed" exit 1 fi fi