From 858e82bc6f56114545f2be472210ebef84d2e4b2 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Mon, 8 Apr 2019 22:29:40 -0400 Subject: [PATCH] Disable normal HashMap test on OS X Implementing random number generation on OS X will require special-casing the 'openat' system call to special-case reading from /dev/urandom --- tests/run-pass/hashmap.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/run-pass/hashmap.rs b/tests/run-pass/hashmap.rs index 94add0078f7c..d0de8b448b09 100644 --- a/tests/run-pass/hashmap.rs +++ b/tests/run-pass/hashmap.rs @@ -28,7 +28,12 @@ fn test_map(mut map: HashMap) { fn main() { let _map : HashMap> = Default::default(); - let map_normal: HashMap = HashMap::new(); - test_map(map_normal); + // TODO: Implement random number generation on OS X + if cfg!(not(target_os = "darwin")) { + let map_normal: HashMap = HashMap::new(); + test_map(map_normal); + } else { + test_map(_map); + } }