changeset 11742:afcbabfb116d

8074146: [TEST_BUG] jdb has succeded to read an unreadable file Summary: Remove this testcase Reviewed-by: sla, egahlin
author dsamersoff
date Fri, 22 Jan 2016 18:06:43 +0300
parents fb5ff982fbc4
children 4138b3f27ffe
files test/com/sun/jdi/JdbReadTwiceTest.sh
diffstat 1 files changed, 0 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/JdbReadTwiceTest.sh	Fri Jan 22 18:04:34 2016 +0300
+++ b/test/com/sun/jdi/JdbReadTwiceTest.sh	Fri Jan 22 18:06:43 2016 +0300
@@ -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.