1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

Add a test for the 'env -' case

This commit is contained in:
Nikita Ofitserov 2015-05-27 00:49:50 +03:00
parent bff831f376
commit c32e21fc01

View file

@ -35,6 +35,14 @@ fn test_ignore_environment() {
let out = str::from_utf8(&po.stdout[..]).unwrap();
assert_eq!(out, "");
let po = Command::new(PROGNAME)
.arg("-")
.output()
.unwrap_or_else(|err| panic!("{}", err));
let out = str::from_utf8(&po.stdout[..]).unwrap();
assert_eq!(out, "");
}
#[test]