summaryrefslogtreecommitdiffhomepage
path: root/tests/zos/shareas.sh
Commit message (Collapse)AuthorAgeFilesLines
* shareas test: wait for the child to appear in psSean Kurtz12 days1-4/+21
| | | | | | | spawn() returns before the child is registered, and under load the ps in the next command found no process at all (FSUMA904), which made the test report a failure that was really a race. Look for the child up to five times, and skip the test where it never appears.
* shareas test: inspect a non-sticky child directlySean Kurtz12 days1-9/+18
| | | | | | | | | | | | | /bin/sh has the sticky bit on z/OS, so spawn() must give it a new address space even with _BPX_SHAREAS=YES (documented by the z/OS C runtime library). The old test therefore reported a failure for both zash and /bin/sh itself. Spawn /bin/sleep instead, which is not sticky, and ask ps for its address space id while it is alive. This also removes the temp-file workaround for the grandchild ps pipe problem. The separate C spawn() probe confirms that envp is honoured regardless of the caller's environment, as the runtime reference specifies; zash's child receives the requested variable and address space.
* tests/zos/shareas: read the address space id from a fileSean Kurtz12 days1-3/+6
| | | | | | ps cannot write to a pipe the shell created when it runs two spawns down (issue #1), so the children write their id and the shell reads it back. The fork case keeps a ps inside the subshell.
* zash: scripting core, test suite and benchmarksSean Kurtz2026-11-121-0/+12
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS). - Parser, expansion, arithmetic, redirection, traps and builtins. - Spawn-first execution: fd plans instead of fork+dup2, in-shell pure builtins for pipelines and command substitution, $(a | b) without a subshell. - Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets. - Tests: posix (dash-generated), zash, process accounting, linux, zos. Nothing has been compiled or run on z/OS yet.