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