annotate test/tools/launcher/unresolvedExceptions.sh @ 7884:70e3553d9d6e

Added tag jdk7u80-b05 for changeset d4bd8bd71ca7
author asaha
date Wed, 21 Jan 2015 08:22:16 -0800
parents 37a05a11f281
children
rev   line source
duke@0 1 #
ohair@2362 2 # Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
ohair@2362 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@2362 20 # or visit www.oracle.com if you need additional information or have any
ohair@2362 21 # questions.
duke@0 22 #
duke@0 23
duke@0 24 # @test
duke@0 25 # @bug 4529320
duke@0 26 # @build SomeException
duke@0 27 # @build UnresolvedExceptions
duke@0 28 # @clean SomeException
duke@0 29 # @run shell/timeout=60 unresolvedExceptions.sh
duke@0 30 # @summary Verifying jvm won't segv if exception not available
duke@0 31 # @author Joseph D. Darcy
duke@0 32
duke@0 33 # Verify directory context variables are set
duke@0 34 if [ "${TESTJAVA}" = "" ]
duke@0 35 then
duke@0 36 echo "TESTJAVA not set. Test cannot execute. Failed."
duke@0 37 exit 1
duke@0 38 fi
duke@0 39
duke@0 40 if [ "${TESTSRC}" = "" ]
duke@0 41 then
duke@0 42 echo "TESTSRC not set. Test cannot execute. Failed."
duke@0 43 exit 1
duke@0 44 fi
duke@0 45
duke@0 46
duke@0 47 if [ "${TESTCLASSES}" = "" ]
duke@0 48 then
duke@0 49 echo "TESTCLASSES not set. Test cannot execute. Failed."
duke@0 50 exit 1
duke@0 51 fi
duke@0 52
duke@0 53 JAVA="${TESTJAVA}/bin/java"
duke@0 54
duke@0 55 $JAVA -classpath ${TESTCLASSES} UnresolvedExceptions
duke@0 56 RESULT=$?
duke@0 57
duke@0 58 case "$RESULT" in
duke@0 59 0 | 1 )
duke@0 60 exit 0;
duke@0 61 ;;
duke@0 62
duke@0 63 * )
duke@0 64 exit 1
duke@0 65 esac