Skip to content

Commit a28330f

Browse files
committed
add testcase for environ shim
1 parent 4f5fdc5 commit a28330f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/run-pass/env.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ fn main() {
88
assert_eq!(env::var("MIRI_TEST"), Ok("the answer".to_owned()));
99
// Test that miri environment is isolated when communication is disabled.
1010
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"))
1113
}

0 commit comments

Comments
 (0)