zsh testsuite fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | t0614: use numerical comparison with test_line_countt/ | +1 | 0 replies | |
| 2/2 | t5564: fix test hang under zsh's sh modet/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] zsh testsuite fixes
This series contains two small patches to make our testsuite pass under zsh's sh mode with 5.9. This is the mode that is in use when zsh is invoked as sh and differs from zsh's default behavior.
Note that no attempt has been made to make the testsuite work under zsh's default or ksh modes, since it is known that many tests will fail in this case (in part, because outside of sh mode, zsh runs the final process in a pipeline in the main shell instead of a subshell).
The first patch fixes a compatibility issue in which we've accidentally requested behavior from POSIX 1003.1-2024, which is too new to be portably supported. It just so happens that most shells happen to support it anyway, but zsh does not at the moment.
The second patch fixes a more mysterious issue with the testsuite hanging. It's unclear why it does so, but it almost certainly has to do with the internals of the testsuite since creating a simple testcase does not reproduce the problem. However, the patch is simple and easy (simply change to a subshell), so we do so.
With these two patches, the testsuite passes in zsh's sh mode. This should offer users whose /bin/sh is AT&T ksh93 (which does not support local and therefore does not work as our shell) an additional choice of shells to use for portability.
brian m. carlson (2):
t0614: use numerical comparison with test_line_count
t5564: fix test hang under zsh's sh mode
t/t0614-reftable-fsck.sh | 2 +- t/t5564-http-proxy.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)