mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: tail-2/pid: include more info upon failure
* tests/tail-2/pid: Print unexpected $state upon failing.
This commit is contained in:
1 parent
0975852c50
commit
fc66fb4d99
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user