We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
environ
1 parent 4f5fdc5 commit a28330fCopy full SHA for a28330f
tests/run-pass/env.rs
@@ -8,4 +8,6 @@ fn main() {
8
assert_eq!(env::var("MIRI_TEST"), Ok("the answer".to_owned()));
9
// Test that miri environment is isolated when communication is disabled.
10
assert!(env::var("MIRI_ENV_VAR_TEST").is_err());
11
+ // Test that the new variable is in the `std::env::Vars` iterator
12
+ assert!(env::vars().any(|(name, value)| name == "MIRI_TEST"))
13
}
0 commit comments