Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

cargo_binary() SIGBUSes on non-existing binary target #76

Closed
behnam opened this issue Nov 3, 2017 · 1 comment
Closed

cargo_binary() SIGBUSes on non-existing binary target #76

behnam opened this issue Nov 3, 2017 · 1 comment

Comments

@behnam
Copy link

behnam commented Nov 3, 2017

  • assert_cli version: v0.5.4
  • Rust version: rustc 1.23.0-nightly (2be4cc040 2017-11-01)
  • OS and version: Darwin Marv.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

Issue

If function cargo_binary() get called with the binary name that doesn't exist in the package, the test execution crashes with SIGBUS, like this:

error: process didn't exit successfully: `/Users/behnam/.../target/debug/deps/test_cargo_binary-f8993162279cd841` (signal: 10, SIGBUS: access to undefined memory)

Repro

#[test]
fn test_1() {
    Assert::cargo_binary("NONEXISTING_NAME").unwrap();
}
@behnam
Copy link
Author

behnam commented Nov 3, 2017

Uh... this is actually an issue with Rust Nightly. Reported here: rust-lang/rust#45731

@behnam behnam closed this as completed Nov 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant