summaryrefslogtreecommitdiff
path: root/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/5091921/Test6890943.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openjdk8-aarch64-port-snapshot/hotspot/test/compiler/5091921/Test6890943.sh')
-rw-r--r--openjdk8-aarch64-port-snapshot/hotspot/test/compiler/5091921/Test6890943.sh24
1 files changed, 7 insertions, 17 deletions
diff --git a/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/5091921/Test6890943.sh b/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/5091921/Test6890943.sh
index 7ebda8f6..755f5689 100644
--- a/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/5091921/Test6890943.sh
+++ b/openjdk8-aarch64-port-snapshot/hotspot/test/compiler/5091921/Test6890943.sh
@@ -22,26 +22,16 @@
# questions.
#
#
-
+## some tests require path to find test source dir
if [ "${TESTSRC}" = "" ]
then
- echo "TESTSRC not set. Test cannot execute. Failed."
- exit 1
+ TESTSRC=${PWD}
+ echo "TESTSRC not set. Using "${TESTSRC}" as default"
fi
echo "TESTSRC=${TESTSRC}"
-if [ "${TESTJAVA}" = "" ]
-then
- echo "TESTJAVA not set. Test cannot execute. Failed."
- exit 1
-fi
-echo "TESTJAVA=${TESTJAVA}"
-if [ "${TESTCLASSES}" = "" ]
-then
- echo "TESTCLASSES not set. Test cannot execute. Failed."
- exit 1
-fi
-echo "TESTCLASSES=${TESTCLASSES}"
-echo "CLASSPATH=${CLASSPATH}"
+## Adding common setup Variables for running shell tests.
+. ${TESTSRC}/../../test_env.sh
+
set -x
@@ -50,7 +40,7 @@ cp ${TESTSRC}/input6890943.txt .
cp ${TESTSRC}/output6890943.txt .
cp ${TESTSRC}/Test6890943.sh .
-${TESTJAVA}/bin/javac -d . Test6890943.java
+${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test6890943.java
${TESTJAVA}/bin/java -XX:-PrintVMOptions -XX:+IgnoreUnrecognizedVMOptions ${TESTVMOPTS} Test6890943 < input6890943.txt > pretest.out 2>&1