Skip to content

test(proc): share executable fixture setup in resolver tests - #38

Merged
HaoZeke merged 1 commit into
mainfrom
test/proc-executable-fixture
Nov 19, 2026
Merged

HaoZeke merged 1 commit into
mainfrom
test/proc-executable-fixture

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

The resolveExecutable test in src/proc.zig builds its scratch
directory with an executable script and a plain file inline, and the
resolver tests that follow need the same pair. The test-only helper
makeExecFixture creates a pid-unique directory under .zig-cache
holding tool.sh with mode 0755 and plain.txt with mode 0644, and
returns the three paths.

The existing test
resolveExecutable resolves slash paths and PATH lookup in
src/proc.zig calls makeExecFixture and keeps its assertions
unchanged.

The `resolveExecutable` test in `src/proc.zig` builds its scratch
directory with an executable script and a plain file inline, and the
resolver tests that follow need the same pair. The test-only helper
`makeExecFixture` creates a pid-unique directory under `.zig-cache`
holding `tool.sh` with mode 0755 and `plain.txt` with mode 0644, and
returns the three paths.

The existing test
`resolveExecutable resolves slash paths and PATH lookup` in
`src/proc.zig` calls `makeExecFixture` and keeps its assertions
unchanged.
@HaoZeke
HaoZeke changed the base branch from feat/proc-resolve-executable to main November 19, 2026 04:43
@HaoZeke
HaoZeke merged commit db02294 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