Skip to content

Commit d8fe061

Browse files
committed
shtests: count nonexistent tests as errors (re: c2eabc5)
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.
1 parent 0aa9e03 commit d8fe061

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/ksh93/tests/shtests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ for i in ${*-*.sh}
305305
do [[ $i == *.sh ]] || i+='.sh'
306306
if [[ ! -r $i ]]
307307
then echo $0: $i: not found >&2
308+
(( ++total_e ))
308309
continue
309310
fi
310311
t=$(grep -c err_exit $i)

0 commit comments

Comments
 (0)