8007277: JDK-8002048 testcase fails to compile
authordsamersoff
Wed, 06 Feb 2013 16:53:47 +0400
changeset 15642 5d93957f4749
parent 15538 02e547c0b530
child 15643 5e3b735b74ac
8007277: JDK-8002048 testcase fails to compile Summary: sun.* classes is not included to ct.sym file and symbol file have to be ignored Reviewed-by: alanb
jdk/test/sun/management/jdp/JdpTest.sh
--- a/jdk/test/sun/management/jdp/JdpTest.sh	Tue Feb 05 14:25:47 2013 +0000
+++ b/jdk/test/sun/management/jdp/JdpTest.sh	Wed Feb 06 16:53:47 2013 +0400
@@ -23,7 +23,7 @@
 
 # @test
 # @bug 7169888 
-# @build JdpUnitTest JdpClient JdpDoSomething 
+# @compile -XDignore.symbol.file JdpUnitTest.java JdpClient.java JdpDoSomething.java 
 # @run shell JdpTest.sh --jtreg --no-compile
 # @summary No word Failed expected in the test output
 
@@ -46,6 +46,10 @@
 
 
 _compile(){
+    # If the test run without JTReg, we have to compile it by our self
+    # Under JTReg see @compile statement above
+    # sun.* packages is not included to symbol file lib/ct.sym so we have 
+    # to ignore it
 
     if [ ! -e ${_testclasses} ]
     then
@@ -55,7 +59,8 @@
     rm -f ${_testclasses}/*.class
 
     # Compile testcase
-    ${TESTJAVA}/bin/javac -d ${_testclasses} JdpUnitTest.java \
+    ${COMPILEJAVA}/bin/javac -XDignore.symbol.file -d ${_testclasses} \
+                                             JdpUnitTest.java \
                                              JdpDoSomething.java  \
                                              JdpClient.java
 
@@ -266,6 +271,13 @@
   exit
 fi
 
+# COMPILEJAVA variable is set when we test jre
+if [ "x${COMPILEJAVA}" = "x" ]
+then
+   COMPILEJAVA="${TESTJAVA}"
+fi
+
+
 #------------------------------------------------------------------------------
 # reading parameters