2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
2012-04-13 09:19:07 -07:00
|
|
|
//@ exec-env:TEST_EXEC_ENV=22
|
2024-03-06 12:44:54 -08:00
|
|
|
//@ ignore-wasm32 wasm runtimes aren't configured to inherit env vars yet
|
2019-04-24 09:26:33 -07:00
|
|
|
//@ ignore-sgx unsupported
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-02-13 22:08:05 +02:00
|
|
|
use std::env;
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-02-13 22:08:05 +02:00
|
|
|
assert_eq!(env::var("TEST_EXEC_ENV"), Ok("22".to_string()));
|
2012-04-13 09:19:07 -07:00
|
|
|
}
|