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
+8
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]