Explicitly unset $CARGO for compiletest
Some UI tests trigger behavior in rustc where it reads $CARGO and changes behavior if it exists. To make the tests work that rely on it not being set, make sure it is not set. By default, this is not set, but people may do weird hacks that cause it to be set.
This commit is contained in:
parent
097261f241
commit
251e75ced6
@ -1932,6 +1932,11 @@ fn run(self, builder: &Builder<'_>) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Some UI tests trigger behavior in rustc where it reads $CARGO and changes behavior if it exists.
|
||||
// To make the tests work that rely on it not being set, make sure it is not set.
|
||||
cmd.env_remove("CARGO");
|
||||
|
||||
cmd.env("RUSTC_BOOTSTRAP", "1");
|
||||
// Override the rustc version used in symbol hashes to reduce the amount of normalization
|
||||
// needed when diffing test output.
|
||||
|
Loading…
Reference in New Issue
Block a user