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
This commit is contained in:
Aaron Hill 2019-04-08 22:29:40 -04:00
parent 6d3e93c281
commit 858e82bc6f
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -28,7 +28,12 @@ fn test_map<S: BuildHasher>(mut map: HashMap<i32, i32, S>) {
fn main() {
let _map : HashMap<i32, i32, BuildHasherDefault<collections::hash_map::DefaultHasher>> = Default::default();
let map_normal: HashMap<i32, i32> = HashMap::new();
test_map(map_normal);
// TODO: Implement random number generation on OS X
if cfg!(not(target_os = "darwin")) {
let map_normal: HashMap<i32, i32> = HashMap::new();
test_map(map_normal);
} else {
test_map(_map);
}
}