shelltest.od: add more "set -e" tests and add a 'skip' return code.
Based on the earlier t/000-set-minus-e bug in minimal/do on some shells, let's add some extra tests that reveal the weirdness on those shells. Unfortunately because they are so popular (including bash and zsh), we can't reject them outright for failing this one. While we're here, add a new return code, "skip", which notes that a test has failed but is not important enough to be considered a warning or failure. Previously we just had these commented out, which is not quite obvious enough. ...and I updated a few comments while reviewing some of the older tests.
This commit is contained in:
parent
761b77333e
commit
1f64cc4525
5 changed files with 79 additions and 18 deletions
|
|
@ -36,9 +36,11 @@ for sh in dash /usr/xpg4/bin/sh ash posh \
|
|||
#echo "line: '$line'" >&2
|
||||
stripw=${line#warning: }
|
||||
stripf=${line#failed: }
|
||||
strips=${line#skip: }
|
||||
crash=$line
|
||||
[ "$line" = "$stripw" ] || msgs="$msgs W$stripw"
|
||||
[ "$line" = "$stripf" ] || msgs="$msgs F$stripf"
|
||||
[ "$line" = "$strips" ] || msgs="$msgs s$strips"
|
||||
done <shelltest.tmp
|
||||
rm -f shelltest.tmp
|
||||
msgs=${msgs# }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue