7078355: sun/net/www/protocol/file/DirPermissionDenied.sh leaves garbage on some linux systems
authorweijun
Fri, 12 Aug 2011 21:04:50 +0800
changeset 10329 175aa7fbe806
parent 10328 06c93c42bca0
child 10330 269a96fd7639
7078355: sun/net/www/protocol/file/DirPermissionDenied.sh leaves garbage on some linux systems Reviewed-by: chegar
jdk/test/sun/net/www/protocol/file/DirPermissionDenied.sh
--- 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