2 # Make sure touch can update the times on a file that is neither
3 # readable nor writable.
5 if test "$VERBOSE" = yes; then
10 DEFAULT_SLEEP_SECONDS
=2
11 SLEEP_SECONDS
=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
18 # Make sure $t2 is two seconds newer than $t1.
19 echo sleeping
for $SLEEP_SECONDS seconds...
25 test "$*" = "x $t2 $t1" || fail
=1
28 touch -d tomorrow
-c $t1 || fail
=1
31 test "$*" = "x $t1 $t2" || fail
=1
33 # Also test the combination of --no-create and -a.
34 touch -a --no-create $t1 || fail
=1