1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 23:14:14 +00:00
cde/src/cmd/ksh93/tests
Johnothan King 59bacfd494
Add more regression tests, mostly from ksh93v- and ksh2020 (#216)
src/cmd/ksh93/tests/arrays.sh,
src/cmd/ksh93/tests/arrays2.sh:
- Backport some regression tests from ksh93v- for associative
  arrays.

src/cmd/ksh93/tests/basic.sh:
- Add ksh93v- regression tests for background process output in
  backtick and shared-state command substitutions as well as
  functions used in command substitutions.

- Add regression tests for using EXIT traps in subshells. In
  ksh93v- and ksh2020 EXIT traps don't work in forked subshells:
  https://github.com/att/ast/issues/1452
- The trap builtin shouldn't segfault after receiving an invalid
  signal name. ksh2020 regression:
  https://github.com/att/ast/issues/1403
- Add a test to make sure invalid flags don't crash ksh.
  ksh2020 regression: https://github.com/att/ast/issues/1284
- Test for an illegal seek error when using the 'join' command with
  process substitutions. ksh93v- regression:
  https://www.mail-archive.com/ast-users@lists.research.att.com/msg00816.html

src/cmd/ksh93/tests/bracket.sh:
- Add some regression tests from ksh93v- for the -eq test operator.

src/cmd/ksh93/tests/builtins.sh:
- Move the regression test for 'exit' in an interactive shell to
  the exit.sh script.
- Test for assignments preceding the command builtin persisting
  after an error. ksh2020 regression:
  https://github.com/att/ast/issues/1402
- The chmod builtin should modify the permissions of all files
  passed to it. ksh2020 regression:
  https://github.com/att/ast/issues/949
- Add regression tests for the cd builtin. In ksh93v- 2013-10-10
  alpha, using cd on a directory without an execute bit doesn't
  cause an error. The test for using cd on a normal file was
  backported from ksh93v-.
- Backport a ksh93v- regression test for the exit status
  from 'kill %'.

src/cmd/ksh93/tests/case.sh:
- Test for a segfault when ksh handles an invalid character class
  in a pattern. ksh2020 regression:
  https://github.com/att/ast/issues/1409

src/cmd/ksh93/tests/exit.sh:
- Add regression tests from ksh2020 for the 'exit' builtin:
  https://github.com/att/ast/commit/d9491d46

src/cmd/ksh93/tests/io.sh:
- Add a regression test from ksh93v- for a process substitution
  hang. This test fails in the 93v- 2013 alpha but succeeds in
  the 2014 beta.

src/cmd/ksh93/tests/math.sh:
- 'typeset -s foo=30000' adds garbage to $foo in ksh93u+, ksh93v-
  and ksh2020:
  $ typeset -s foo=30000
  $ echo $foo
  5#1430000
  This bug was fixed in commit 88a6baa1, but that commit didn't
  add a regression test for it.

src/cmd/ksh93/tests/variables.sh:
- Add a regression test for $PS4 incorrectly unsetting
  ${.sh.subshell}: https://github.com/att/ast/issues/1092
2021-03-12 16:44:55 +00:00
..
alias.sh Fix a crash on unsetting preset alias (re: ddaa145b) (#133) 2020-09-18 11:17:20 +01:00
append.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
arith.sh Fix arbitrary command execution vuln in array subscripts in arith 2021-03-04 13:37:13 +00:00
arrays.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
arrays2.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
attributes.sh Fix test -v for numeric types & set/unset state for short int 2021-03-10 00:38:41 +00:00
basic.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
bracket.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
builtins.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
case.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
comvar.sh Fix test -v for numeric types & set/unset state for short int 2021-03-10 00:38:41 +00:00
comvario.sh Misc regression test fixes 2021-02-28 21:57:38 +00:00
coprocess.sh regress test tweaks 2020-10-03 00:32:32 +02:00
cubetype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
enum.sh Correctly block invalid values for arrays of an enum type 2021-02-01 16:57:43 +00:00
exit.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
expand.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
functions.sh Misc regression test fixes 2021-02-28 21:57:38 +00:00
glob.sh Fixes for -G/--globstar (re: 5312a59d) 2021-03-07 01:57:21 +00:00
grep.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
heredoc.sh fix typos: descritor -> descriptor 2020-10-05 18:39:49 +02:00
io.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
jobs.sh test/jobs.sh: use slightly more widely supported ps -o format 2021-02-15 15:41:31 +00:00
leaks.sh Implement leak detection on UnixWare (#172) 2021-02-13 00:52:54 +00:00
locale.sh Misc regression test fixes 2021-02-28 21:57:38 +00:00
math.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
nameref.sh Fix ${x=y} and ${x:=y} for numeric types of x 2021-03-06 03:56:52 +00:00
namespace.sh Fix compile/regress fails on compiling without SHOPT_* options 2021-02-08 22:02:45 +00:00
options.sh tests/options.sh: add forgotten SHOPT_BRACEPAT check (re: af5f7acf) 2021-02-15 01:57:17 +00:00
path.sh test/path.sh: don't fail if 'command -x' test runs out of memory 2021-03-12 13:16:20 +00:00
pointtype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
pty.sh tests/pty.sh: increase output delays from 10ms to 15ms 2021-03-12 12:18:28 +00:00
quoting.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
quoting2.sh Make 'read' compatible with Shift-JIS 2021-02-18 16:07:12 +00:00
readcsv.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
recttype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
restricted.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
return.sh move exit/return tests from basic.sh to return.sh (re: 092b90da) 2021-02-14 06:32:57 +00:00
select.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
shtests Fixes for -G/--globstar (re: 5312a59d) 2021-03-07 01:57:21 +00:00
sigchld.sh tests/sigchild.sh: increase a sleep to prevent very rare intermittent fail 2020-09-18 20:06:34 +02:00
signal.sh Fix signal/trap behaviour in ksh functions (rhbz#1454804) 2020-09-29 03:16:39 +02:00
statics.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
subshell.sh Update comsub-with-alias anti-leak hack (re: fe20311f) 2021-02-18 23:35:20 +00:00
substring.sh Misc regression test fixes 2021-02-28 21:57:38 +00:00
tilde.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
timetype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
treemove.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
types.sh Fix ${x=y} and ${x:=y} for numeric types of x 2021-03-06 03:56:52 +00:00
variables.sh Add more regression tests, mostly from ksh93v- and ksh2020 (#216) 2021-03-12 16:44:55 +00:00
vartree1.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
vartree2.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00