2 # This test would fail on solaris5.7 with tail from pre-1.22k textutils.
3 # The problem was that using the solaris5.7 setvbuf function to turn off
4 # buffering doesn't flush stdout.
6 # FIXME: actually, I couldn't find a way to write the test (without resorting
7 # to use of expect) so that it would provoke the failure on solaris5.7.
8 # To exercise the bug, cat's stdout seems to have to be directed
11 if test "$VERBOSE" = yes; then
18 trap "cd $pwd; rm -rf $tmp" 0 1 2 3 15
21 mkdir $tmp || test_failure=1
22 cd $tmp || test_failure=1
24 if test $test_failure = 1; then
25 echo 'failure in testing framework'
30 tail -f in | cat > out &
36 test "`cat out`" = fubar || fail=1