diff --git a/jdk/test/sun/management/jdp/JdpTest.sh b/jdk/test/sun/management/jdp/JdpTest.sh index 764a19f2595..b92f6e9d0d3 100644 --- a/jdk/test/sun/management/jdp/JdpTest.sh +++ b/jdk/test/sun/management/jdp/JdpTest.sh @@ -45,13 +45,13 @@ _logname=".classes/output.txt" _last_pid="" -_compile(){ +_do_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 [ ! -f ${_testclasses} ] then mkdir -p ${_testclasses} fi @@ -65,7 +65,7 @@ _compile(){ JdpClient.java - if [ ! -e ${_testclasses}/JdpDoSomething.class -o ! -e ${_testclasses}/JdpClient.class -o ! -e ${_testclasses}/JdpUnitTest.class ] + if [ ! -f ${_testclasses}/JdpDoSomething.class -o ! -f ${_testclasses}/JdpClient.class -o ! -f ${_testclasses}/JdpUnitTest.class ] then echo "ERROR: Can't compile" exit -1 @@ -297,7 +297,7 @@ done if [ ${_compile} = "yes" ] then - _compile + _do_compile fi if [ ${_jtreg} = "yes" ]