]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: tail-2/pid: include more info upon failure
authorJim Meyering <meyering@redhat.com>
Tue, 23 Jun 2009 14:53:43 +0000 (16:53 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 23 Jun 2009 14:53:43 +0000 (16:53 +0200)
* tests/tail-2/pid: Print unexpected $state upon failing.

tests/tail-2/pid

index ff2f099ad735df65a91eb6da44eb684dbe98ce21..9d33e4f2f0b7a5844c50a8e4af16b40bbffc8686 100755 (executable)
@@ -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