Skip to content

Commit 13f85e1

Browse files
committed
Test fallback on Linux/Andorid
Signed-off-by: Joe Richey <[email protected]>
1 parent b028603 commit 13f85e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/use_file.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,9 @@ impl<F: FnMut()> Drop for DropGuard<F> {
174174
self.0()
175175
}
176176
}
177+
178+
// We only need separate tests here when use_file is the fallback.
179+
#[cfg(all(test, any(target_os = "android", target_os = "linux")))]
180+
mod tests {
181+
crate::tests::define_tests!(super::getrandom_inner);
182+
}

0 commit comments

Comments
 (0)