提交 9bb2b2aa 编写于 作者: A alanb

7076644: TEST_BUG: test/java/io/File/Basic.java fails with cygwin

Reviewed-by: alanb
Contributed-by: NEric Wang <yiming.wang@oracle.com>
上级 edc21737
......@@ -228,9 +228,6 @@ java/net/URLClassLoader/closetest/CloseTest.java macosx-all
# 6962637
java/io/File/MaxPathLength.java windows-all
# 7076644
java/io/File/Basic.java windows-all
# 7145435 - Test needs AWT window server, does not work headless
java/io/Serializable/resolveClass/deserializeButton/run.sh macosx-all
......
......@@ -33,7 +33,16 @@ fi
rm -rf x.Basic.*
rm -f x.Basic.non
printf "%s" "xyzzyN" > x.Basic.rw
touch x.Basic.ro; chmod ugo-w x.Basic.ro
touch x.Basic.ro
OS=`uname -s`
case "$OS" in
Windows_* | CYGWIN*)
attrib +R x.Basic.ro
;;
*)
chmod ugo-w x.Basic.ro
;;
esac
mkdir x.Basic.dir
if $TESTJAVA/bin/java $* -classpath "$TESTCLASSES" Basic; then
[ -f x.Basic.rw ] && (echo "x.Basic.rw not deleted"; exit 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册