diff --git a/tests/by-util/test_dd.rs b/tests/by-util/test_dd.rs index 16d2ee10d..12f78e2d3 100644 --- a/tests/by-util/test_dd.rs +++ b/tests/by-util/test_dd.rs @@ -1552,6 +1552,8 @@ fn test_nocache_file() { #[test] #[cfg(unix)] +#[cfg(not(feature = "feat_selinux"))] +// Disabled on SELinux for now fn test_skip_past_dev() { // NOTE: This test intends to trigger code which can only be reached with root permissions. let ts = TestScenario::new(util_name!()); @@ -1573,6 +1575,7 @@ fn test_skip_past_dev() { #[test] #[cfg(unix)] +#[cfg(not(feature = "feat_selinux"))] fn test_seek_past_dev() { // NOTE: This test intends to trigger code which can only be reached with root permissions. let ts = TestScenario::new(util_name!()); diff --git a/tests/by-util/test_df.rs b/tests/by-util/test_df.rs index bd6947450..d3692a7f0 100644 --- a/tests/by-util/test_df.rs +++ b/tests/by-util/test_df.rs @@ -285,6 +285,7 @@ fn test_type_option() { #[test] #[cfg(not(any(target_os = "freebsd", target_os = "windows")))] // FIXME: fix test for FreeBSD & Win +#[cfg(not(feature = "feat_selinux"))] fn test_type_option_with_file() { let fs_type = new_ucmd!() .args(&["--output=fstype", "."])