unresolvedExceptions.sh revision 2362
59N/A#
553N/A# Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
59N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
59N/A#
59N/A# This code is free software; you can redistribute it and/or modify it
59N/A# under the terms of the GNU General Public License version 2 only, as
59N/A# published by the Free Software Foundation.
59N/A#
59N/A# This code is distributed in the hope that it will be useful, but WITHOUT
59N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
59N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
59N/A# version 2 for more details (a copy is included in the LICENSE file that
59N/A# accompanied this code).
59N/A#
59N/A# You should have received a copy of the GNU General Public License version
59N/A# 2 along with this work; if not, write to the Free Software Foundation,
59N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
59N/A#
553N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A# or visit www.oracle.com if you need additional information or have any
553N/A# questions.
59N/A#
59N/A
59N/A# @test
59N/A# @bug 4529320
59N/A# @build SomeException
59N/A# @build UnresolvedExceptions
59N/A# @clean SomeException
59N/A# @run shell/timeout=60 unresolvedExceptions.sh
# @summary Verifying jvm won't segv if exception not available
# @author Joseph D. Darcy
# Verify directory context variables are set
if [ "${TESTJAVA}" = "" ]
then
echo "TESTJAVA not set. Test cannot execute. Failed."
exit 1
fi
if [ "${TESTSRC}" = "" ]
then
echo "TESTSRC not set. Test cannot execute. Failed."
exit 1
fi
if [ "${TESTCLASSES}" = "" ]
then
echo "TESTCLASSES not set. Test cannot execute. Failed."
exit 1
fi
JAVA="${TESTJAVA}/bin/java"
$JAVA -classpath ${TESTCLASSES} UnresolvedExceptions
RESULT=$?
case "$RESULT" in
0 | 1 )
exit 0;
;;
* )
exit 1
esac