Debian Codegraph @

debian/missing-sources/safe_arch/tests/integration/rdrand_tests.rs

raw
1 use super::*;
2
3 // Note(Lokathor): It's technically possible, and valid, that these could fail
4 // when run just once. However, if they fail across multiple test runs then
5 // *that* is when we have a problem.
6
7 #[test]
8 fn test_rdrand_u16() {
9 let mut val = 0_u16;
10 let _it_worked = rdrand_u16(&mut val);
11 }
12
13 #[test]
14 fn test_rdrand_u32() {
15 let mut val = 0_u32;
16 let _it_worked = rdrand_u32(&mut val);
17 }
18
19 #[test]
20 #[cfg(target_arch = "x86_64")]
21 fn test_rdrand_u64() {
22 let mut val = 0_u64;
23 let _it_worked = rdrand_u64(&mut val);
24 }