`executable_path` assumes the location of the production binary based on the test binary - This isn't the case when a user sets `build.build-dir` (added as of Cargo 1.91) - This isn't the case if we approve the new `build-dir` layout (https://github.com/rust-lang/cargo/issues/15010) - This isn't the case if we change the `build.build-dir` default (https://github.com/rust-lang/cargo/issues/16147) This problem was identified by the following crater run: https://github.com/rust-lang/rust/pull/149852 Ways to resolve this - Switch to getting the bin path from a macro that is run in the caller's code, e.g. see [`assert_cmd::cargo::cargo_bin!`](https://docs.rs/assert_cmd/latest/src/assert_cmd/macros.rs.html#56-63) - Add a fallback using the approved-but-not-stable runtime environment variable (https://github.com/rust-lang/cargo/pull/16421), e.g. [`assert_cmd::cargo::cargo_bin`](https://docs.rs/assert_cmd/latest/src/assert_cmd/cargo.rs.html#220-251)