changeset 143:e1332c04f6b6

6759795: test/tools/apt/Basic/print.sh may fail depending on jtreg options Reviewed-by: darcy
author jjg
date Wed, 15 Oct 2008 11:13:23 -0700
parents 83ffdd1a6294
children 4feda9f0dbe7
files test/tools/apt/Basics/print.sh
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/apt/Basics/print.sh	Wed Oct 15 17:23:55 2008 +0100
+++ b/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 "