8074146: jdb has succeded to read an unreadable file

Remove this testcase

Reviewed-by: sla, egahlin
This commit is contained in:
Dmitry Samersoff 2015-04-20 11:03:47 -07:00
parent 19b0ecc5d4
commit cf33d5c103

View File

@ -204,39 +204,6 @@ if [ ! -r c:/ ] ; then
clean
fi
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"