2 # ensure that pathchk exits nonzero in one particular case where it didn't
4 if test "$VERBOSE" = yes; then
9 PRIV_CHECK_ARG
=require-non-root .
$srcdir/..
/priv-check
12 t0
=`echo "$0"|sed 's,.*/,,'`.tmp
; tmp
=$t0/$$
13 trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
14 trap '(exit $?); exit' 1 2 13 15
17 mkdir
-p $tmp || framework_failure
=1
18 cd $tmp || framework_failure
=1
19 touch file || framework_failure
=1
21 if test $framework_failure = 1; then
22 echo "$0: failure in testing framework" 1>&2
28 # This should exit nonzero. Before 2.0.13, it gave a diagnostic,
29 # but exited successfully.
30 pathchk file
/x
> /dev
/null
2>&1 && fail
=1