8074146: jdb has succeded to read an unreadable file
authordsamersoff
Mon, 20 Apr 2015 11:03:47 -0700
changeset 29976 59b7d3e80b68
parent 29975 38fe3dec1406
child 29977 ad35f9986f75
8074146: jdb has succeded to read an unreadable file Summary: Remove this testcase Reviewed-by: sla, egahlin
jdk/test/com/sun/jdi/JdbReadTwiceTest.sh
--- a/jdk/test/com/sun/jdi/JdbReadTwiceTest.sh	Mon Apr 20 10:37:41 2015 -0700
+++ b/jdk/test/com/sun/jdi/JdbReadTwiceTest.sh	Mon Apr 20 11:03:47 2015 -0700
@@ -206,39 +206,6 @@
 
 echo
 echo "+++++++++++++++++++++++++++++++++++"
-echo "Read an unreadable file - verify the read fails."
-
-canMakeUnreadable=No
-id > $HOME/jdb.ini
-if chmod a-r $HOME/jdb.ini 
-then
-  grep -q 'uid=0(' $HOME/jdb.ini 2> /dev/null
-  case $? in
-    0)
-      echo "Error! Can't make file unreadable running as root"
-    ;;
-    1)
-      echo "Error! Can't make file unreadable for some other reason (windows?)"
-    ;;
-    *)
-      echo "OK. the file is unreadable"
-      canMakeUnreadable=Yes 
-    ;;
-   esac
-else    
-  echo "Error! Can't create or chmod file"
-fi  
-
-if [ "$canMakeUnreadable" = "Yes" ]
-then
-    doit
-    failIfNot 1 "open: $HOME/jdb.ini"
-fi
-clean
-
-
-echo
-echo "+++++++++++++++++++++++++++++++++++"
 echo "Read a directory - verify the read fails"
 # If the file (IE. directory) exists, we try to read it.  The
 # read will fail.