* tests/tail-2/tail-n0f: Read the process status using the test-lib.sh
require_proc_pid_status_ function.
tail --sleep=4 -${c_or_n} 0 -f $file &
pid=$!
sleep .5
tail --sleep=4 -${c_or_n} 0 -f $file &
pid=$!
sleep .5
- set _ `sed -n '/^State:[ ]*\([^ ]\)/s//\1/p' /proc/$pid/status`
- shift # Remove the leading `_'.
- state=$1
+ state=$(get_process_status_ $pid)
case $state in
S*) ;;
*) echo $0: process in unexpected state: $state 1>&2; fail=1 ;;
case $state in
S*) ;;
*) echo $0: process in unexpected state: $state 1>&2; fail=1 ;;