855N/A#!/bin/sh
855N/A#
1472N/A# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
855N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
855N/A#
855N/A# This code is free software; you can redistribute it and/or modify it
855N/A# under the terms of the GNU General Public License version 2 only, as
855N/A# published by the Free Software Foundation.
855N/A#
855N/A# This code is distributed in the hope that it will be useful, but WITHOUT
855N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
855N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
855N/A# version 2 for more details (a copy is included in the LICENSE file that
855N/A# accompanied this code).
855N/A#
855N/A# You should have received a copy of the GNU General Public License version
855N/A# 2 along with this work; if not, write to the Free Software Foundation,
855N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
855N/A#
1472N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A# or visit www.oracle.com if you need additional information or have any
1472N/A# questions.
855N/A#
855N/A#
4503N/A## some tests require path to find test source dir
855N/Aif [ "${TESTSRC}" = "" ]
855N/Athen
4503N/A TESTSRC=${PWD}
4503N/A echo "TESTSRC not set. Using "${TESTSRC}" as default"
855N/Afi
855N/Aecho "TESTSRC=${TESTSRC}"
4503N/A## Adding common setup Variables for running shell tests.
4503N/A. ${TESTSRC}/../../test_env.sh
855N/A
855N/Aset -x
855N/A
855N/Acp ${TESTSRC}/Test6857159.java .
855N/Acp ${TESTSRC}/Test6857159.sh .
855N/A
4503N/A${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6857159.java
855N/A
855N/A${TESTJAVA}/bin/java ${TESTVMOPTS} -Xbatch -XX:+PrintCompilation -XX:CompileOnly=Test6857159\$ct.run Test6857159 > test.out 2>&1
855N/A
855N/Agrep "COMPILE SKIPPED" test.out
855N/A
855N/Aresult=$?
855N/Aif [ $result -eq 1 ]
855N/Athen
855N/A echo "Passed"
855N/A exit 0
855N/Aelse
855N/A echo "Failed"
855N/A exit 1
855N/Afi