From 48691019ecb21c86256a7573ce910f3f5fd8d2c5 Mon Sep 17 00:00:00 2001 From: dsamersoff Date: Fri, 22 Jan 2016 18:06:43 +0300 Subject: [PATCH] 8074146: [TEST_BUG] jdb has succeded to read an unreadable file Summary: Remove this testcase Reviewed-by: sla, egahlin --- test/com/sun/jdi/JdbReadTwiceTest.sh | 33 ---------------------------- 1 file changed, 33 deletions(-) diff --git a/test/com/sun/jdi/JdbReadTwiceTest.sh b/test/com/sun/jdi/JdbReadTwiceTest.sh index 0c78fe5ec..a166f2c54 100644 --- a/test/com/sun/jdi/JdbReadTwiceTest.sh +++ b/test/com/sun/jdi/JdbReadTwiceTest.sh @@ -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" -- GitLab