add testcase for environ shim

This commit is contained in:
Christian Poveda 2020-03-05 09:41:35 -05:00
parent 4f5fdc5810
commit a28330febb
No known key found for this signature in database
GPG Key ID: 27525EF5E7420A50

View File

@ -8,4 +8,6 @@ fn main() {
assert_eq!(env::var("MIRI_TEST"), Ok("the answer".to_owned()));
// Test that miri environment is isolated when communication is disabled.
assert!(env::var("MIRI_ENV_VAR_TEST").is_err());
// Test that the new variable is in the `std::env::Vars` iterator
assert!(env::vars().any(|(name, value)| name == "MIRI_TEST"))
}