(jm_FILE_SYSTEM_USAGE): Open-code what was a use of AS_IF.
[coreutils.git] / tests / touch / obsolescent
blob31f32658efb5ea1a4bf6766c48b7bd2ccefa4845
1 #!/bin/sh
2 # make sure touch succeeds with a single 8- or 10-digit file name argument
4 if test "$VERBOSE" = yes; then
5 set -x
6 touch --version
7 fi
9 pwd=`pwd`
10 tmp=obsol.$$
11 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
12 trap '(exit $?); exit' 1 2 13 15
14 framework_failure=0
15 mkdir $tmp || framework_failure=1
16 cd $tmp || framework_failure=1
18 if test $framework_failure = 1; then
19 echo 'failure in testing framework'
20 (exit 1); exit
23 fail=0
25 for ones in 11111111 1111111111; do
26 touch $ones || fail=1
27 test -f $ones || fail=1
28 done
30 (exit $fail); exit