You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use std::env;
|
|
|
|
#[test]
|
|
fn clearenv() {
|
|
env::set_var("FOO", "BAR");
|
|
unsafe { nix::env::clearenv() }.unwrap();
|
|
assert_eq!(env::var("FOO").unwrap_err(), env::VarError::NotPresent);
|
|
assert_eq!(env::vars().count(), 0);
|
|
}
|