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

wasm32_final_outputs test fails when Cargo 0.25 is compiled from rustc 1.24.0 source tarball #48255

Open
saintdev opened this issue Feb 16, 2018 · 1 comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@saintdev
Copy link

When running cargo test from the src/tools/cargo directory in the rustc 1.24.0 source tarball, the wasm32_final_outputs test fails. It seems that the test is finding the rustc Cargo.toml instead of the cargo Cargo.toml and it fails because the test directory is not part of the workspace. I filed an issue with Cargo (#4755) and was instructed to file the issue against rust instead.

test wasm32_final_outputs ... FAILED
test transitive_dependencies_not_available ... ok
test verbose_release_build_deps ... ok
test staticlib_rlib_and_bin ... ok
test lto_build ... ok
test same_metadata_different_directory ... ok

failures:

---- wasm32_final_outputs stdout ----
	thread 'wasm32_final_outputs' panicked at 'Can't create workspace: ErrorMessage { msg: "current package believes it\'s in a workspace when it\'s not:\ncurrent:   /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/target/cit/t120/foo/Cargo.toml\nworkspace: /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/Cargo.toml\n\nthis may be fixable by adding `target/cit/t120/foo` to the `workspace.members` array of the manifest located at: /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/Cargo.toml" }', src/libcore/result.rs:916:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    wasm32_final_outputs

test result: FAILED. 127 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test build'
@pietroalbini pietroalbini added A-testsuite Area: The testsuite used to check the correctness of rustc T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Feb 20, 2018
@Enselic
Copy link
Contributor

Enselic commented Jul 25, 2023

@rustbot label O-wasm

@rustbot rustbot added the O-wasm Target: WASM (WebAssembly), http://webassembly.org/ label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants