Skip to content

test(proc): cover relative slash paths in resolveExecutable - #39

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

HaoZeke merged 1 commit into
mainfrom
test/proc-resolve-executable-relative-slash

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

proc.resolveExecutable resolves a name that holds a slash against the
current working directory, and the existing test passes absolute slash
paths alone.

The new test resolveExecutable handles relative slash paths in
src/proc.zig builds ./ paths to the makeExecFixture files relative
to the working directory and leaves the working directory unchanged. It
checks that the relative path to tool.sh resolves to the absolute
fixture path and that the relative path to plain.txt returns null.

`proc.resolveExecutable` resolves a name that holds a slash against the
current working directory, and the existing test passes absolute slash
paths alone.

The new test `resolveExecutable handles relative slash paths` in
`src/proc.zig` builds `./` paths to the `makeExecFixture` files relative
to the working directory and leaves the working directory unchanged. It
checks that the relative path to `tool.sh` resolves to the absolute
fixture path and that the relative path to `plain.txt` returns null.
@HaoZeke
HaoZeke changed the base branch from test/proc-executable-fixture to main November 19, 2026 04:43
@HaoZeke
HaoZeke merged commit 10ae7c7 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