Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build tests with panic=abort #3017

Closed
arkpar opened this issue Aug 19, 2016 · 0 comments
Closed

Cannot build tests with panic=abort #3017

arkpar opened this issue Aug 19, 2016 · 0 comments

Comments

@arkpar
Copy link

arkpar commented Aug 19, 2016

$ cargo --version
cargo 0.12.0-nightly (6b98d1f 2016-07-04)
$ rustc --version
rustc 1.11.0 (9b21dcd6a 2016-08-15)

# checkout branch that has panic="abort" added under [profile.release]
$ git clone git@github.com:ethcore/parity.git -b panic-abort-fail parity && cd parity
$ cargo test --release -v -p ethcore -p ethash -p ethcore-util -p bigint

This fails on a random crate with a random error, such as:

error: failed to read bytecode: No such file or directory (os error 2)

or

error: could not rename dep info: "/Users/user/src/rust/parity/target/release/deps/bigint-894bdb43e1d8158e.d"

Caused by:
  No such file or directory (os error 2)

OS X 10.11.6

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Aug 19, 2016
Ensure that when we compile doctested libraries or examples we use the same
panic mode as the rest of the tests, namely ignoring panic=abort b/c libtest
isn't compiled with panic=abort.

Closes rust-lang#3017
bors added a commit that referenced this issue Aug 23, 2016
Fix transitive doctests panic=abort

Ensure that when we compile doctested libraries or examples we use the same
panic mode as the rest of the tests, namely ignoring panic=abort b/c libtest
isn't compiled with panic=abort.

Closes #3017
bors added a commit that referenced this issue Aug 23, 2016
Fix transitive doctests panic=abort

Ensure that when we compile doctested libraries or examples we use the same
panic mode as the rest of the tests, namely ignoring panic=abort b/c libtest
isn't compiled with panic=abort.

Closes #3017
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

No branches or pull requests

1 participant