Skip to content

Fix fragile binary lookup in tests (#15)#16

Merged
mathiasror merged 1 commit into
mainfrom
fix/issue-15-cargo-binary-lookup
Apr 10, 2026
Merged

Fix fragile binary lookup in tests (#15)#16
mathiasror merged 1 commit into
mainfrom
fix/issue-15-cargo-binary-lookup

Conversation

@mathiasror
Copy link
Copy Markdown
Owner

The unit tests in main.rs located the abc binary via manual path traversal (current_exe + pop), which breaks with Cargo's custom build-dir and -Zbuild-dir-new-layout. Move the one unique test to the integration suite using env!("CARGO_BIN_EXE_abc") and drop the two that were already covered by existing integration tests.

The unit tests in main.rs located the abc binary via manual path
traversal (current_exe + pop), which breaks with Cargo's custom
build-dir and -Zbuild-dir-new-layout. Move the one unique test
to the integration suite using env!("CARGO_BIN_EXE_abc") and drop
the two that were already covered by existing integration tests.
@mathiasror mathiasror merged commit 09e4bc9 into main Apr 10, 2026
7 checks passed
@mathiasror mathiasror deleted the fix/issue-15-cargo-binary-lookup branch April 10, 2026 07:23
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