changeset 1984:0774840070f5

7152892: some jtreg tests fail with permission denied Reviewed-by: coffeys
author robm
date Thu, 13 Feb 2014 21:39:10 +0000
parents 420dc86b1716
children 71b361cf81bc
files test/tools/javac/ClassPathTest/ClassPathTest.sh
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/ClassPathTest/ClassPathTest.sh	Tue Feb 11 21:01:12 2014 +0000
+++ b/test/tools/javac/ClassPathTest/ClassPathTest.sh	Thu Feb 13 21:39:10 2014 +0000
@@ -56,11 +56,17 @@
 # set platform-dependent variables
 OS=`uname -s`
 case "$OS" in
-  SunOS | Linux | Darwin | CYGWIN* )
+  SunOS | Linux | Darwin )
     FS="/"
+    CHMOD="${FS}bin${FS}chmod"
     ;;
   Windows* )
     FS="\\"
+    CHMOD="chmod"
+    ;;
+  CYGWIN* )
+    FS="/"
+    CHMOD="chmod"
     ;;
   * )
     echo "Unrecognized system!"
@@ -73,6 +79,7 @@
 cleanup() {
 	rm -f *.class pkg${FS}*.class foo${FS}pkg${FS}*.class bar${FS}pkg${FS}*.class
 	cp -rf $TESTSRC${FS}* .
+        ${CHMOD} -R u+w *
 }
 
 fail() {