mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 03:12:48 +02:00
tests: avoid false failures on darwin 19.2.0
With these adjustments, all tests pass on macOS Catalina. * tests/dd/sparse.sh: Adjust so that systems like apfs that don't create holes < 16 MiB do not fail erroneously. * tests/touch/trailing-slash.sh: Darwin was seen to dereference symlinks to files when given a trailing slash, so avoid that particular case.
This commit is contained in:
@@ -33,7 +33,9 @@ returns_ 1 touch no-file/ || fail=1
|
||||
returns_ 1 touch file/ || fail=1
|
||||
returns_ 1 touch dangling/ || fail=1
|
||||
returns_ 1 touch loop/ || fail=1
|
||||
returns_ 1 touch link1/ || fail=1
|
||||
if returns_ 2 ls link1/; then # darwin allows trailing slash to files
|
||||
returns_ 1 touch link1/ || fail=1
|
||||
fi
|
||||
touch dir/ || fail=1
|
||||
|
||||
# -c silences ENOENT, but not ENOTDIR or ELOOP
|
||||
@@ -41,7 +43,9 @@ touch -c no-file/ || fail=1
|
||||
returns_ 1 touch -c file/ || fail=1
|
||||
touch -c dangling/ || fail=1
|
||||
returns_ 1 touch -c loop/ || fail=1
|
||||
returns_ 1 touch -c link1/ || fail=1
|
||||
if returns_ 2 ls link1/; then
|
||||
returns_ 1 touch -c link1/ || fail=1
|
||||
fi
|
||||
touch -c dir/ || fail=1
|
||||
returns_ 1 test -f no-file || fail=1
|
||||
returns_ 1 test -f nowhere || fail=1
|
||||
|
||||
Reference in New Issue
Block a user