rust/tests/pass/env/home.rs

10 lines
261 B
Rust
Raw Normal View History

//@only-target-linux: home_dir is only supported on Linux
//@compile-flags: -Zmiri-disable-isolation
use std::env;
fn main() {
env::remove_var("HOME"); // make sure we enter the interesting codepath
#[allow(deprecated)]
env::home_dir().unwrap();
}