diff --git a/src/use_file.rs b/src/use_file.rs index 4fdbe3d7..c5e81669 100644 --- a/src/use_file.rs +++ b/src/use_file.rs @@ -174,3 +174,9 @@ impl Drop for DropGuard { self.0() } } + +// We only need separate tests here when use_file is the fallback. +#[cfg(all(test, any(target_os = "android", target_os = "linux")))] +mod tests { + crate::tests::define_tests!(super::getrandom_inner); +}