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
32 # This should exit nonzero. Through 5.3.0 it exited with status zero.
33 pathchk -p '' > /dev
/null
2>&1 && fail
=1
35 # This tests the new -P option.
36 pathchk -P '' > /dev
/null
2>&1 && fail
=1
37 pathchk -P -- - > /dev
/null
2>&1 && fail
=1
38 pathchk -p -P x
/- > /dev
/null
2>&1 && fail
=1
40 (exit $fail); exit $fail