mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Move tmp
test directory.
This commit is contained in:
parent
580461bd40
commit
4e7fe836d5
@ -172,7 +172,7 @@ impl Layout {
|
||||
fingerprint: dest.join(".fingerprint"),
|
||||
examples: dest.join("examples"),
|
||||
doc: root.join("doc"),
|
||||
tmp: dest.join("tmp"),
|
||||
tmp: root.join("tmp"),
|
||||
root,
|
||||
dest,
|
||||
_lock: lock,
|
||||
|
@ -642,6 +642,7 @@ impl TomlProfile {
|
||||
| "rust"
|
||||
| "rustc"
|
||||
| "rustdoc"
|
||||
| "tmp"
|
||||
| "uninstall"
|
||||
) || lower_name.starts_with("cargo")
|
||||
{
|
||||
|
@ -233,7 +233,6 @@ corresponding environment variable is set to the empty string, `""`.
|
||||
where integration tests or benchmarks are free to put any data needed by
|
||||
the tests/benches. Cargo initially creates this directory but doesn't
|
||||
manage its content in any way, this is the responsibility of the test code.
|
||||
There are separate directories for `debug` and `release` profiles.
|
||||
|
||||
[integration test]: cargo-targets.md#integration-tests
|
||||
[`env` macro]: ../../std/macro.env.html
|
||||
|
@ -1377,7 +1377,10 @@ fn crate_env_vars() {
|
||||
let tmpdir: PathBuf = tmp.unwrap().into();
|
||||
|
||||
let exe: PathBuf = env::current_exe().unwrap().into();
|
||||
let mut expected: PathBuf = exe.parent().unwrap().parent().unwrap().into();
|
||||
let mut expected: PathBuf = exe.parent().unwrap()
|
||||
.parent().unwrap()
|
||||
.parent().unwrap()
|
||||
.into();
|
||||
expected.push("tmp");
|
||||
assert_eq!(tmpdir, expected);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user