2011-04-12 16:42:26 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
##
|
|
|
|
## @test
|
2012-07-23 14:28:38 -07:00
|
|
|
## @bug 7020373 7055247 7053586 7185550
|
2011-04-12 16:42:26 -04:00
|
|
|
## @key cte_test
|
|
|
|
## @summary JSR rewriting can overflow memory address size variables
|
2012-07-23 14:28:38 -07:00
|
|
|
## @ignore Ignore it as 7053586 test uses lots of memory. See bug report for detail.
|
2011-04-12 16:42:26 -04:00
|
|
|
## @run shell Test7020373.sh
|
|
|
|
##
|
|
|
|
|
|
|
|
if [ "${TESTSRC}" = "" ]
|
|
|
|
then
|
2013-03-27 09:49:51 -07:00
|
|
|
TESTSRC=${PWD}
|
|
|
|
echo "TESTSRC not set. Using "${TESTSRC}" as default"
|
2011-04-12 16:42:26 -04:00
|
|
|
fi
|
2013-03-27 09:49:51 -07:00
|
|
|
echo "TESTSRC=${TESTSRC}"
|
|
|
|
## Adding common setup Variables for running shell tests.
|
|
|
|
. ${TESTSRC}/../../test_env.sh
|
2011-04-12 16:42:26 -04:00
|
|
|
|
2013-03-27 09:49:51 -07:00
|
|
|
${COMPILEJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar
|
2011-04-12 16:42:26 -04:00
|
|
|
|
2012-05-11 17:24:32 +01:00
|
|
|
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass4000_1 > test.out 2>&1
|
2011-04-12 16:42:26 -04:00
|
|
|
|
|
|
|
cat test.out
|
|
|
|
|
|
|
|
egrep "SIGSEGV|An unexpected error has been detected" test.out
|
|
|
|
|
|
|
|
if [ $? = 0 ]
|
|
|
|
then
|
|
|
|
echo "Test Failed"
|
|
|
|
exit 1
|
|
|
|
else
|
2012-07-17 22:16:17 -07:00
|
|
|
egrep "java.lang.LinkageError|java.lang.NoSuchMethodError|Main method not found in class OOMCrashClass4000_1|insufficient memory" test.out
|
2011-04-12 16:42:26 -04:00
|
|
|
if [ $? = 0 ]
|
|
|
|
then
|
|
|
|
echo "Test Passed"
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo "Test Failed"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|