test/java/io/File/basic.sh

Print this page

        

*** 30,43 **** TESTCLASSES=. fi rm -rf x.Basic.* rm -f x.Basic.non ! echo xyzzy > x.Basic.rw touch x.Basic.ro; chmod ugo-w x.Basic.ro mkdir x.Basic.dir ! if $TESTJAVA/bin/java $* -classpath $TESTCLASSES Basic; then [ -f x.Basic.rw ] && (echo "x.Basic.rw not deleted"; exit 1) ([ -d x.Basic.dir ] || [ \! -d x.Basic.dir2 ]) \ && (echo "x.Basic.dir not renamed"; exit 1) [ \! -d x.Basic.nonDir ] && (echo "x.Basic.nonDir not created"; exit 1) [ -f x.Basic.non ] && (echo "x.Basic.non not deleted"; exit 1) --- 30,43 ---- TESTCLASSES=. 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 mkdir x.Basic.dir ! if $TESTJAVA/bin/java $* -classpath "$TESTCLASSES" Basic; then [ -f x.Basic.rw ] && (echo "x.Basic.rw not deleted"; exit 1) ([ -d x.Basic.dir ] || [ \! -d x.Basic.dir2 ]) \ && (echo "x.Basic.dir not renamed"; exit 1) [ \! -d x.Basic.nonDir ] && (echo "x.Basic.nonDir not created"; exit 1) [ -f x.Basic.non ] && (echo "x.Basic.non not deleted"; exit 1)