1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

tests/builtins.sh: Fix dtksh regression test failures (re: ef4fe41) (#272)

The usage options test wasn't properly excluding all dtksh builtins,
which was causing the regression tests to fail under dtksh. This commit
adds exclusions for the builtins missed in commit ef4fe41.
This commit is contained in:
Johnothan King 2021-04-14 16:10:12 -07:00 committed by GitHub
parent d6ddd89053
commit df47731d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -988,7 +988,7 @@ EOF
# Builtins should handle unrecognized options correctly
while IFS= read -r bltin <&3
do case $bltin in
echo | test | true | false | \[ | : | getconf | */getconf | uname | */uname | Dt* | X* | login | newgrp )
echo | test | true | false | \[ | : | getconf | */getconf | uname | */uname | catclose | catgets | catopen | Dt* | _Dt* | X* | login | newgrp )
continue ;;
/*/*) expect="Usage: ${bltin##*/} "
actual=$({ PATH=${bltin%/*}; "${bltin##*/}" --this-option-does-not-exist; } 2>&1) ;;