rust/tests/pass/home.rs
Ralf Jung d61e55a1d4 add support for env::home_dir
and a bit of cleanup
2022-08-06 08:29:00 -04:00

10 lines
261 B
Rust

//@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();
}