test/runtime/7020373/Test7020373.sh

changeset 5686
6f45933aef35
parent 5685
88d6b9a1c27c
child 5687
41e6ae9f6dd7
child 5743
63147986a428
child 5745
c1d7040a1183
     1.1 --- a/test/runtime/7020373/Test7020373.sh	Tue Sep 17 20:09:32 2013 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,43 +0,0 @@
     1.4 -#!/bin/sh
     1.5 -
     1.6 -##
     1.7 -## @test
     1.8 -## @bug 7020373 7055247 7053586 7185550
     1.9 -## @key cte_test
    1.10 -## @summary JSR rewriting can overflow memory address size variables
    1.11 -## @ignore Ignore it as 7053586 test uses lots of memory. See bug report for detail.
    1.12 -## @run shell Test7020373.sh
    1.13 -##
    1.14 -
    1.15 -if [ "${TESTSRC}" = "" ]
    1.16 -then
    1.17 -  TESTSRC=${PWD}
    1.18 -  echo "TESTSRC not set.  Using "${TESTSRC}" as default"
    1.19 -fi
    1.20 -echo "TESTSRC=${TESTSRC}"
    1.21 -## Adding common setup Variables for running shell tests.
    1.22 -. ${TESTSRC}/../../test_env.sh
    1.23 -
    1.24 -${COMPILEJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar
    1.25 -
    1.26 -${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass4000_1 > test.out 2>&1
    1.27 -
    1.28 -cat test.out
    1.29 -
    1.30 -egrep "SIGSEGV|An unexpected error has been detected" test.out
    1.31 -
    1.32 -if [ $? = 0 ]
    1.33 -then
    1.34 -    echo "Test Failed"
    1.35 -    exit 1
    1.36 -else
    1.37 -    egrep "java.lang.LinkageError|java.lang.NoSuchMethodError|Main method not found in class OOMCrashClass4000_1|insufficient memory" test.out
    1.38 -    if [ $? = 0 ]
    1.39 -    then
    1.40 -        echo "Test Passed"
    1.41 -        exit 0
    1.42 -    else
    1.43 -        echo "Test Failed"
    1.44 -        exit 1
    1.45 -    fi
    1.46 -fi

mercurial