Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/test/compiler/5091921/Test6890943.sh
32285 views
#!/bin/sh1#2# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4#5# This code is free software; you can redistribute it and/or modify it6# under the terms of the GNU General Public License version 2 only, as7# published by the Free Software Foundation.8#9# This code is distributed in the hope that it will be useful, but WITHOUT10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12# version 2 for more details (a copy is included in the LICENSE file that13# accompanied this code).14#15# You should have received a copy of the GNU General Public License version16# 2 along with this work; if not, write to the Free Software Foundation,17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18#19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20# or visit www.oracle.com if you need additional information or have any21# questions.22#23#24## some tests require path to find test source dir25if [ "${TESTSRC}" = "" ]26then27TESTSRC=${PWD}28echo "TESTSRC not set. Using "${TESTSRC}" as default"29fi30echo "TESTSRC=${TESTSRC}"31## Adding common setup Variables for running shell tests.32. ${TESTSRC}/../../test_env.sh333435set -x3637cp ${TESTSRC}/Test6890943.java .38cp ${TESTSRC}/input6890943.txt .39cp ${TESTSRC}/output6890943.txt .40cp ${TESTSRC}/Test6890943.sh .4142${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6890943.java4344${TESTJAVA}/bin/java -XX:-PrintVMOptions -XX:+IgnoreUnrecognizedVMOptions ${TESTVMOPTS} Test6890943 < input6890943.txt > pretest.out 2>&14546# This test sometimes tickles an unrelated performance warning that interferes with diff.47grep -v 'warning: Performance bug: SystemDictionary' pretest.out > test.out4849diff output6890943.txt test.out5051result=$?52if [ $result -eq 0 ]53then54echo "Passed"55exit 056else57echo "Failed"58exit 159fi606162