-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Unable to run tests on dylib sub-crate in a workspace on Windows #39487
Comments
@faern do you have Rust installed through rustup? If so this looks like a familiar bug in rustup, but if not then sounds like something is awry! |
@alexcrichton I have Rust installed through rustup, yes. I were not able to find a similar issue on github. |
Ok thanks for the confirmation @faern! In that case I'm going to close in favor of the upstream issue at rust-lang/rustup#893 (albeit somewhat oddly titled in relation to this issue) |
Great. I'll follow that issue. Just for anyone else who might stumble on this. Fixing this problem is pretty easy. Just add the bin folder of your toolchain to PATH. In appveyor I did it like this in my
|
This worked for me:
|
I have a workspace set up where the root crate is a normal library crate and one of the sub-crates has crate-type
dylib
. In this setup the tests on the sub-crate can't be executed. Running the test exe (cargo test --all
) exits with exit code:-1073741515
Which converted becomes:
0xC0000135 = STATUS_DLL_NOT_FOUND
And I get a graphical error message stating:
And then another dialog with the same message but
test-
replaced withstd-
. The crate must both be part of the workspace and have the crate-typedylib
to trigger this problem.I tried this code:
root/Cargo.toml
:root/dylib/Cargo.toml
:And then I run
cargo test --all
in the root crate orcargo test
in the dylib crate.Meta
Happens on both stable and nightly:
rustc 1.15.0 (10893a9a3 2017-01-19)
rustc 1.16.0-nightly (24055d0f2 2017-01-31)
Same problem on both
x86_64-pc-windows-msvc
andx86_64-pc-windows-gnu
. Tried both on my own machine and in appveyor. Same result.The text was updated successfully, but these errors were encountered: