Skip to content

Commit f451fe2

Browse files
committed
Test env isolation
1 parent afc6713 commit f451fe2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/run-pass/env.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ fn main() {
66
assert_eq!(env::var("MIRI_TEST"), Err(env::VarError::NotPresent));
77
env::set_var("MIRI_TEST", "the answer");
88
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());
911
}

0 commit comments

Comments
 (0)