Skip to content

Cargo test hangsΒ #7608

@srinivasreddy

Description

@srinivasreddy

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions