shelltest: use a more magical magic number for success.
There may be some odd situation where a shell returns 0 despite not executing the script correctly; now 0 is an error condition.
This commit is contained in:
parent
e9e24bb450
commit
b993e449f8
3 changed files with 4 additions and 3 deletions
|
|
@ -40,10 +40,10 @@ for sh in dash sh /usr/xpg4/bin/sh ash posh mksh ksh ksh88 ksh93 pdksh \
|
|||
crash=${crash# }
|
||||
|
||||
case $RV in
|
||||
0) echo "ok $msgs"; [ -n "$GOOD" ] || GOOD=$FOUND ;;
|
||||
40) echo "ok $msgs"; [ -n "$GOOD" ] || GOOD=$FOUND ;;
|
||||
41) echo "failed $msgs" ;;
|
||||
42) echo "warnings $msgs"; [ -n "$WARN" ] || WARN=$FOUND ;;
|
||||
*) echo "crashed $crash" ;;
|
||||
*) echo "crash $crash" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue