test/runtime/7020373/Test7020373.sh

changeset 5772
10cc3b624f8f
parent 4831
04d6d4322c6a
equal deleted inserted replaced
5771:b960c9df4f11 5772:10cc3b624f8f
1 #!/bin/sh
2
3 ##
4 ## @test
5 ## @bug 7020373 7055247 7053586 7185550
6 ## @key cte_test
7 ## @summary JSR rewriting can overflow memory address size variables
8 ## @ignore Ignore it as 7053586 test uses lots of memory. See bug report for detail.
9 ## @run shell Test7020373.sh
10 ##
11
12 if [ "${TESTSRC}" = "" ]
13 then
14 TESTSRC=${PWD}
15 echo "TESTSRC not set. Using "${TESTSRC}" as default"
16 fi
17 echo "TESTSRC=${TESTSRC}"
18 ## Adding common setup Variables for running shell tests.
19 . ${TESTSRC}/../../test_env.sh
20
21 ${COMPILEJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar
22
23 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass4000_1 > test.out 2>&1
24
25 cat test.out
26
27 egrep "SIGSEGV|An unexpected error has been detected" test.out
28
29 if [ $? = 0 ]
30 then
31 echo "Test Failed"
32 exit 1
33 else
34 egrep "java.lang.LinkageError|java.lang.NoSuchMethodError|Main method not found in class OOMCrashClass4000_1|insufficient memory" test.out
35 if [ $? = 0 ]
36 then
37 echo "Test Passed"
38 exit 0
39 else
40 echo "Test Failed"
41 exit 1
42 fi
43 fi

mercurial