2 # show that the following no longer makes ls infloop
3 # mkdir loop; cd loop; ln -s ../loop sub; ls -RL
5 if test "$VERBOSE" = yes; then
10 . $srcdir/../lang-default
14 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
15 trap '(exit $?); exit' 1 2 13 15
18 mkdir $tmp || framework_failure=1
19 cd $tmp || framework_failure=1
20 mkdir loop || framework_failure=1
21 ln -s ../loop loop/sub || framework_failure=1
23 if test $framework_failure = 1; then
24 echo 'failure in testing framework' 1>&2
30 ls -RL loop 2>err | head -n 7 > out
31 # With an inf-looping ls, out will contain these 7 lines:
42 cmp out bad 2>/dev/null && fail=1
44 (exit $fail); exit $fail