rust/tests/ui/exec-env.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
243 B
Rust
Raw Normal View History

//@ run-pass
//@ exec-env:TEST_EXEC_ENV=22
//@ ignore-wasm32 wasm runtimes aren't configured to inherit env vars yet
2019-04-24 16:26:33 +00:00
//@ ignore-sgx unsupported
use std::env;
pub fn main() {
assert_eq!(env::var("TEST_EXEC_ENV"), Ok("22".to_string()));
}