提交 ff12f415 编写于 作者: D dsamersoff

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
上级 49670cac
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
# @test # @test
# @bug 7169888 # @bug 7169888
# @build JdpUnitTest JdpClient JdpDoSomething # @compile -XDignore.symbol.file JdpUnitTest.java JdpClient.java JdpDoSomething.java
# @run shell JdpTest.sh --jtreg --no-compile # @run shell JdpTest.sh --jtreg --no-compile
# @summary No word Failed expected in the test output # @summary No word Failed expected in the test output
...@@ -46,6 +46,10 @@ _last_pid="" ...@@ -46,6 +46,10 @@ _last_pid=""
_compile(){ _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} ] if [ ! -e ${_testclasses} ]
then then
...@@ -55,7 +59,8 @@ _compile(){ ...@@ -55,7 +59,8 @@ _compile(){
rm -f ${_testclasses}/*.class rm -f ${_testclasses}/*.class
# Compile testcase # Compile testcase
${TESTJAVA}/bin/javac -d ${_testclasses} JdpUnitTest.java \ ${COMPILEJAVA}/bin/javac -XDignore.symbol.file -d ${_testclasses} \
JdpUnitTest.java \
JdpDoSomething.java \ JdpDoSomething.java \
JdpClient.java JdpClient.java
...@@ -266,6 +271,13 @@ then ...@@ -266,6 +271,13 @@ then
exit exit
fi fi
# COMPILEJAVA variable is set when we test jre
if [ "x${COMPILEJAVA}" = "x" ]
then
COMPILEJAVA="${TESTJAVA}"
fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# reading parameters # reading parameters
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册