changeset 6403:4697f4725cee

8007786: JDK-8002048 testcase doesn't work on Solaris Summary: test built in into Solaris shell doesn't have -e operator Reviewed-by: sla, sspitsyn
author dsamersoff
date Tue, 12 Feb 2013 16:41:29 +0400
parents 6707e6b768ee
children 665c9df34263
files test/sun/management/jdp/JdpTest.sh
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/management/jdp/JdpTest.sh	Tue Feb 12 16:11:40 2013 +0400
+++ b/test/sun/management/jdp/JdpTest.sh	Tue Feb 12 16:41:29 2013 +0400
@@ -45,13 +45,13 @@
 _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 @@
                                              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 @@
 
 if [ ${_compile} = "yes" ]
 then
- _compile
+ _do_compile
 fi
 
 if [ ${_jtreg} = "yes" ]