2 # make sure touch gives reasonable diagnostics
4 if test "$VERBOSE" = yes; then
9 . $srcdir/../envvar-check
10 . $srcdir/../lang-default
11 PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
15 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
16 trap '(exit $?); exit' 1 2 13 15
19 mkdir $tmp || framework_failure=1
20 cd $tmp || framework_failure=1
24 # Ensure that $d1 doesn't already exist.
25 ls -d $d1 2> /dev/null && framework_failure=1
27 if test $framework_failure = 1; then
28 echo 'failure in testing framework' 1>&2
34 touch $dir > out 2>&1 && fail=1
36 touch: cannot touch \`$dir': No such file or directory
40 test $fail = 1 && diff out exp 2> /dev/null
42 (exit $fail); exit $fail