From c32e21fc01f3aa50e421a10606c454846a8c9aed Mon Sep 17 00:00:00 2001 From: Nikita Ofitserov Date: Wed, 27 May 2015 00:49:50 +0300 Subject: [PATCH] Add a test for the 'env -' case --- test/env.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/env.rs b/test/env.rs index a513d0f68..9be3165a8 100644 --- a/test/env.rs +++ b/test/env.rs @@ -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]