-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some bugs in the regression tests and add more regression tests (#…
…295) src/cmd/ksh93/tests/{basic.sh,builtins.sh,shtests}: - Redirect error output from the ulimit builtin to silence irrelevant errors in the regression tests (these errors may occur when a command such as 'ulimit -t 4' is run before the regression tests). - Shellquote the error messages from the getconf regression tests. src/cmd/ksh93/tests/{arrays,io,variables}.sh: - Backport the ksh2020 regression tests for the following bugs: att#23 att#203 att#472 att#492 - Minor fix to POSIX mode regression tests in ksh93v-. In ksh93v-, [[ -o ?posix ]] doesn't return an error (because it's implemented in the bash mode). However, 'set -o posix' will fail in ksh93v- if it's not in bash compatibility mode, which causes this test script to exit prematurely. src/cmd/ksh93/tests/{basic,pty}.sh: - Add test for att#1461 - The ksh2020 fix for [ -t 1 ] in non-forking command substitutions caused the following bug in interactive shells: $ ( [ -t 1 ]; echo $? ) 1 # Always fails To avoid introducing this bug, this commit adds a regression test for it. src/cmd/ksh93/tests/functions.sh: - Add test for att#1160 Put the test to the start of functions.sh (if it's at the end of the script, it refuses to fail under ksh2020). Output from this regression test when run against ksh2020: functions.sh[46]: eval'ing function dumps function body to stdout (got $' { eval "bar() { FAILURE; }"; }\n { FAILURE; }')
- Loading branch information
Showing
8 changed files
with
101 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters