History

Test `gix_testtools::umask()` on Android targets

Rather than only on non-Android Linux-based systems. Like most Linux-based systems, Android has `/proc`, so the test can get the umask expected value using its `/proc`-based approach that is independent of the approach used in the code under test.

Eliah Kagan committed 1 year ago

Commit c19bf1d1 parent 35627b51 file · +4 −1Browse files

Unified · Split

tests/tools/tests/umask.rs+4−1
@@ -1,6 +1,9 @@
11 #[test]
22 #[cfg(unix)]
3−#[cfg_attr(not(target_os = "linux"), ignore = "The test itself uses /proc")]
3+#[cfg_attr(
4+ not(any(target_os = "linux", target_os = "android")),
5+ ignore = "The test itself uses /proc"
6+)]
47 fn umask() {
58 use std::fs::File;
69 use std::io::{BufRead, BufReader};