diff options
Diffstat (limited to 'src/test/ui/env-null-vars.rs')
-rw-r--r-- | src/test/ui/env-null-vars.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/ui/env-null-vars.rs b/src/test/ui/env-null-vars.rs deleted file mode 100644 index 10582a8a5..000000000 --- a/src/test/ui/env-null-vars.rs +++ /dev/null @@ -1,23 +0,0 @@ -// run-pass - -#![allow(unused_imports)] - -// ignore-windows -// ignore-wasm32-bare no libc to test ffi with - -// issue-53200 - -#![feature(rustc_private)] -extern crate libc; - -use std::env; - -// FIXME: more platforms? -#[cfg(target_os = "linux")] -fn main() { - unsafe { libc::clearenv(); } - assert_eq!(env::vars().count(), 0); -} - -#[cfg(not(target_os = "linux"))] -fn main() {} |