Skip to content

test(proc): add direct coverage for which - #40

Merged
HaoZeke merged 1 commit into
mainfrom
test/proc-which-direct
Nov 19, 2026
Merged

HaoZeke merged 1 commit into
mainfrom
test/proc-which-direct

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

proc.which searches the given PATH string for an executable regular
file, and src/proc.zig exercises it only through resolveExecutable.

The new test which resolves executable candidates directly in
src/proc.zig passes the makeExecFixture directory as the search
path. It checks that tool.sh resolves to its absolute path and that
both plain.txt and an absent name return null.

`proc.which` searches the given PATH string for an executable regular
file, and `src/proc.zig` exercises it only through `resolveExecutable`.

The new test `which resolves executable candidates directly` in
`src/proc.zig` passes the `makeExecFixture` directory as the search
path. It checks that `tool.sh` resolves to its absolute path and that
both `plain.txt` and an absent name return null.
@HaoZeke
HaoZeke changed the base branch from test/proc-resolve-executable-relative-slash to main November 19, 2026 04:44
@HaoZeke
HaoZeke merged commit f4d8364 into main Nov 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant