Skip to content

Cargo test hangs #7608

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

Closed
srinivasreddy opened this issue Nov 19, 2019 · 2 comments
Closed

Cargo test hangs #7608

srinivasreddy opened this issue Nov 19, 2019 · 2 comments
Labels
C-bug Category: bug

Comments

@srinivasreddy
Copy link
Contributor

Problem

#[macro_use]
extern crate structure;

#[cfg(test)]
mod tests {
    #[test]
    fn test_dat() {
        println!(structure!("I").pack(1 as u32).unwrap());
    }
}

Steps

  1. run cargo test -- --nocapture

Cargo test hangs, though it is expected to error out

Notes

Output of cargo version:
cargo 1.36.0 (c4fcfb7 2019-05-15)

➜  rust-bloomfilter git:(master) ✗ rustup show
Default host: x86_64-apple-darwin
rustup home:  /Users/srini/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin
beta-x86_64-apple-darwin
nightly-2016-08-01-x86_64-apple-darwin
nightly-2018-11-20-x86_64-apple-darwin
nightly-2018-12-04-x86_64-apple-darwin
nightly-2019-03-15-x86_64-apple-darwin
nightly-2019-04-12-x86_64-apple-darwin
nightly-2019-08-21-x86_64-apple-darwin
nightly-x86_64-apple-darwin
1.36.0-x86_64-apple-darwin (default)
1.37.0-x86_64-apple-darwin

active toolchain
----------------

1.36.0-x86_64-apple-darwin (default)
rustc 1.36.0 (a53f9df32 2019-07-03)
@srinivasreddy srinivasreddy added the C-bug Category: bug label Nov 19, 2019
@ehuss
Copy link
Contributor

ehuss commented Nov 19, 2019

cargo 1.36.0 (c4fcfb7 2019-05-15)

This appears to already be fixed (via rust-lang/rust#62476 I think). Can you try a newer version? The latest stable version is currently 1.39.

@ehuss ehuss closed this as completed Nov 19, 2019
@srinivasreddy
Copy link
Contributor Author

Yes, Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants