6759795: test/tools/apt/Basic/print.sh may fail depending on jtreg options
authorjjg
Wed, 15 Oct 2008 11:13:23 -0700
changeset 1477 aa16dead2793
parent 1476 4b54f7c2d3db
child 1478 1847a080da9a
6759795: test/tools/apt/Basic/print.sh may fail depending on jtreg options Reviewed-by: darcy
langtools/test/tools/apt/Basics/print.sh
--- a/langtools/test/tools/apt/Basics/print.sh	Wed Oct 15 17:23:55 2008 +0100
+++ b/langtools/test/tools/apt/Basics/print.sh	Wed Oct 15 11:13:23 2008 -0700
@@ -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 @@
 	;;
 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 "