mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Also allow a slightly different diagnostic -- the
one you get when using openat-enabled fts.c and du (coming soon).
This commit is contained in:
1 parent
0aea37a1b3
commit
63028c863d
1 file changed
+16
-1
+16
-1
@@ -39,7 +39,22 @@ cat <<\EOF > exp
|
||||
chgrp: `d/no-x': Permission denied
|
||||
EOF
|
||||
|
||||
cmp out exp || fail=1
|
||||
# With native fdopendir, du uses a different code path.
|
||||
cat <<\EOF > exp-native-fdopendir
|
||||
chmod: cannot access `d/no-x/y': Permission denied
|
||||
chmod: fts_read failed: Permission denied
|
||||
EOF
|
||||
|
||||
if cmp out exp >/dev/null 2>&1; then
|
||||
:
|
||||
else
|
||||
if cmp out exp-native-fdopendir; then
|
||||
:
|
||||
else
|
||||
fail=1
|
||||
fi
|
||||
fi
|
||||
|
||||
test $fail = 1 && diff out exp 2> /dev/null
|
||||
|
||||
(exit $fail); exit $fail
|
||||
Reference in new issue
Block a user