7078355: sun/net/www/protocol/file/DirPermissionDenied.sh leaves garbage on some linux systems
Reviewed-by: chegar
--- a/jdk/test/sun/net/www/protocol/file/DirPermissionDenied.sh Fri Aug 12 12:26:31 2011 +0800
+++ b/jdk/test/sun/net/www/protocol/file/DirPermissionDenied.sh Fri Aug 12 21:04:50 2011 +0800
@@ -37,5 +37,9 @@
$TESTJAVA/bin/java -classpath $TESTCLASSES DirPermissionDenied ${TESTDIR}
result=$?
+
+# Add back read access for user, otherwise not removable on some systems
+chmod u+r ${TESTDIR}
+
rm -rf ${TESTDIR}
exit $result