Skip to content

Commit c19bf1d

Browse files
committed
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.
1 parent 35627b5 commit c19bf1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/tools/tests/umask.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -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};

0 commit comments

Comments
 (0)