# HG changeset patch # User dsamersoff # Date 1453475203 -10800 # Node ID afcbabfb116d7534161354851570e8f4b6c5019f # Parent fb5ff982fbc42358dea6427ba00045ea07ca368a 8074146: [TEST_BUG] jdb has succeded to read an unreadable file Summary: Remove this testcase Reviewed-by: sla, egahlin diff -r fb5ff982fbc4 -r afcbabfb116d test/com/sun/jdi/JdbReadTwiceTest.sh --- 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.