From 11186a847caaa8904ecd26f65d5fdc5bcdb2096a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 5 Jul 2007 11:13:54 +0200 Subject: [PATCH] Translate signal numbers to readable strings. --- bin/lib | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/lib b/bin/lib index f85e523..6f5c476 100644 --- a/bin/lib +++ b/bin/lib @@ -209,6 +209,13 @@ function test-result rm $TDIR/$TEST.pts fi + # Translate signal numbers to readable strings + SG=${M#Caught fatal signal } + if [ "$SG" != "$M" ] ; then + SG=`perl -MConfig -e '@s=split / /,$Config{sig_name}; print $s[$ARGV[0]]' $SG` + [ -z "$SG" ] || M="$M (SIG$SG)" + fi + # Translate Free Pascal runtime errors to readable strings RE=${M#Exited with error status } if [ "$FREE_PASCAL_RTE" == 1 -a "$RE" != "$M" ] ; then -- 2.39.2