6759795: test/tools/apt/Basic/print.sh may fail depending on jtreg options

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2008-10-15 11:13:23 -07:00
parent 0f7dc30816
commit a2201c5ae7

View File

@ -26,7 +26,6 @@
# @test
# @bug 5008759 4998341 5018369 5032476 5060121 5096932 5096931
# @run shell ../verifyVariables.sh
# @build Aggregate
# @run shell print.sh
# @summary test availabilty of print option
# @author Joseph D. Darcy
@ -42,6 +41,12 @@ case "${OS}" in
;;
esac
# Compile file directly, without TESTJAVACOPTS
# Don't use @build or @compile as these implicitly use jtreg -javacoption values
# and it is important that this file be compiled as expected, for later comparison
# against a golden file.
"${TESTJAVA}/bin/javac" ${TESTTOOLVMOPTS} -d ${TESTCLASSES} ${TESTSRC}/Aggregate.java
# Construct path to apt executable
APT="${TESTJAVA}/bin/apt ${TESTTOOLVMOPTS} \
-print "