diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-31 16:53:09 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-31 16:53:09 +0000 |
commit | 4e705a6806ad680e68f1c12a5ddfd38dff94ced7 (patch) | |
tree | cbcd92fc3e5cce65058cd88a4882ff9d7622e6a7 | |
parent | 43b3273e5b2ab022f068d758fdaba90aee790fbf (diff) | |
download | ffmpeg-4e705a6806ad680e68f1c12a5ddfd38dff94ced7.tar.gz |
fate: translate exit status to signal name
Originally committed as revision 24623 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | tests/fate-run.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 6046ed10e1..6739fd9eaa 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -106,6 +106,11 @@ mkdir -p "$outdir" $command > "$outfile" 2>$errfile err=$? +if [ $err -gt 128 ]; then + sig=$(kill -l $err 2>/dev/null) + test "${sig}" = "${sig%[^A-Z]*}" || unset sig +fi + if test -e "$ref"; then case $cmp in diff) diff -u -w "$ref" "$outfile" >$cmpfile ;; @@ -120,7 +125,7 @@ else err=1 fi -echo "${test}:${err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile +echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile test $err = 0 && rm -f $outfile $errfile $cmpfile $cleanfiles exit $err |