1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

shtests: count nonexistent tests as errors (re: c2eabc57)

When a nonexistent test script was given as an argument to
shtests, this was not counted as an error and shtests exited
successfully (with status 0).

src/cmd/ksh93/tests/shtests:
- Increase total error count if a test script is not found.
This commit is contained in:
Martijn Dekker 2020-06-24 00:51:40 +02:00
parent 0aa9e03f55
commit d8fe061f4c

View file

@ -305,6 +305,7 @@ for i in ${*-*.sh}
do [[ $i == *.sh ]] || i+='.sh'
if [[ ! -r $i ]]
then echo $0: $i: not found >&2
(( ++total_e ))
continue
fi
t=$(grep -c err_exit $i)