mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-14 17:21:04 +00:00
in LS_COLORS In parallel, in the GNU test, adjust the GNU tests as we don't use libcap but xattr instead.
22 lines
764 B
Diff
22 lines
764 B
Diff
diff --git a/tests/ls/no-cap.sh b/tests/ls/no-cap.sh
|
|
index 3d84c74ff..d1f60e70a 100755
|
|
--- a/tests/ls/no-cap.sh
|
|
+++ b/tests/ls/no-cap.sh
|
|
@@ -21,13 +21,13 @@ print_ver_ ls
|
|
require_strace_ capget
|
|
|
|
LS_COLORS=ca=1; export LS_COLORS
|
|
-strace -e capget ls --color=always > /dev/null 2> out || fail=1
|
|
-$EGREP 'capget\(' out || skip_ "your ls doesn't call capget"
|
|
+strace -e llistxattr ls --color=always > /dev/null 2> out || fail=1
|
|
+$EGREP 'llistxattr\(' out || skip_ "your ls doesn't call llistxattr"
|
|
|
|
rm -f out
|
|
|
|
LS_COLORS=ca=:; export LS_COLORS
|
|
-strace -e capget ls --color=always > /dev/null 2> out || fail=1
|
|
-$EGREP 'capget\(' out && fail=1
|
|
+strace -e llistxattr ls --color=always > /dev/null 2> out || fail=1
|
|
+$EGREP 'llistxattr\(' out && fail=1
|
|
|
|
Exit $fail
|