tests: tail-2/pid: include more info upon failure

* tests/tail-2/pid: Print unexpected $state upon failing.
This commit is contained in:
Jim Meyering committed 2009-06-23 16:53:43 +02:00
1 parent 0975852c50
commit fc66fb4d99
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ state=$(get_process_status_ $pid)
if test -n "$state"; then
case $state in
S*) ;;
*) echo $0: process dead 1>&2; fail=1 ;;
*) echo "$0: process dead? (state=$state)" 1>&2; fail=1 ;;
esac
kill $pid
fi