mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
ls: use the uucore functions
This commit is contained in:
parent
4651a58b82
commit
cb419b4f77
1 changed files with 3 additions and 6 deletions
|
@ -4153,8 +4153,7 @@ fn test_ls_dangling_symlinks() {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "feat_selinux")]
|
#[cfg(feature = "feat_selinux")]
|
||||||
fn test_ls_context1() {
|
fn test_ls_context1() {
|
||||||
use selinux::{self, KernelSupport};
|
if !uucore::selinux::is_selinux_enabled() {
|
||||||
if selinux::kernel_support() == KernelSupport::Unsupported {
|
|
||||||
println!("test skipped: Kernel has no support for SElinux context");
|
println!("test skipped: Kernel has no support for SElinux context");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4169,8 +4168,7 @@ fn test_ls_context1() {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "feat_selinux")]
|
#[cfg(feature = "feat_selinux")]
|
||||||
fn test_ls_context2() {
|
fn test_ls_context2() {
|
||||||
use selinux::{self, KernelSupport};
|
if !uucore::selinux::is_selinux_enabled() {
|
||||||
if selinux::kernel_support() == KernelSupport::Unsupported {
|
|
||||||
println!("test skipped: Kernel has no support for SElinux context");
|
println!("test skipped: Kernel has no support for SElinux context");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4206,8 +4204,7 @@ fn test_ls_context_long() {
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "feat_selinux")]
|
#[cfg(feature = "feat_selinux")]
|
||||||
fn test_ls_context_format() {
|
fn test_ls_context_format() {
|
||||||
use selinux::{self, KernelSupport};
|
if !uucore::selinux::is_selinux_enabled() {
|
||||||
if selinux::kernel_support() == KernelSupport::Unsupported {
|
|
||||||
println!("test skipped: Kernel has no support for SElinux context");
|
println!("test skipped: Kernel has no support for SElinux context");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue