Skip to content

Commit

Permalink
Test fallback on Linux/Andorid
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Richey <[email protected]>
  • Loading branch information
josephlr committed Jun 20, 2024
1 parent b028603 commit 13f85e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/use_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,9 @@ impl<F: FnMut()> Drop for DropGuard<F> {
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);
}

0 comments on commit 13f85e1

Please sign in to comment.