summaryrefslogtreecommitdiffhomepage
path: root/web/assets/git@git.abendless.com:/srv/git
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-28 16:34:52 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-28 16:34:52 -0600
commit648125a5ef1a98519c5d2cd66c4f015bcb8b5b1f (patch)
tree70f802e577c24b23eb3a96098b4500a913bab399 /web/assets/git@git.abendless.com:/srv/git
parent3f24ca27250ade07c34a98fb792e6ca64e54c21b (diff)
downloadzash-648125a5ef1a98519c5d2cd66c4f015bcb8b5b1f.tar.gz
tests: cover the review fixes that landed without one
The 2026-11-28 review merge (#46) and the in-process `( cd dir )` merge (#31) left four changes with no test of their own. Three of the eighteen commits cannot have one, see below. - tests/posix/glob-edge.sh: `deep/*` where `deep` holds a file, a subdirectory, a symlink and a dangling symlink. This is the path the glob change takes when the last component has no literal tail left: it adds what readdir() named without an lstat(), so a directory and a broken link must still appear. Replacing `sb_cstr(&g->path)` with the unterminated buffer in that call makes this test fail. - tests/posix/charset.sh: a reversed range `[z-a]` matches nothing, which is what dash and bash do; the ASCII fast path compares bytes where the EBCDIC path looks up a table, so the two must agree on the edge. - tests/posix/printf-ext.sh: a 5000-character `%s`. The bare `%s` fast path writes the argument straight to the output instead of through the format buffer, so length is now the output's business. - tests/zash/heredoc-tmpdir.sh: a TMPDIR longer than PATH_MAX still produces the here-document, through the pipe fallback. - .exp files regenerated with dash (posix) and ./zash (zash), then reviewed: only the added lines differ. The three commits with no test: - 270ac66 `signal()` to `sigaction()` for SIG_DFL: the disposition set is the same, so no test can tell the two apart. - 06e1dd5 the arena size guard: reaching it needs a SIZE_MAX/2 allocation. - de0d26a the TMPDIR length check itself: a truncated temp name has no `XXXXXX` left, so mkstemp() already failed and the pipe fallback already ran. heredoc-tmpdir.sh pins that fallback, not the check. Verified on Linux (7.3.4-300.fc45.x86_64, 2026-11-28): make check 128 passed, 1 skipped, the known linux/i-dscomplete failure; make asan the same with no sanitizer report; the new posix tests pass against dash too.
Diffstat (limited to 'web/assets/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions