mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Disable cd-without-permission test on macOS < 12
This allows the tests to pass on older macOS, before O_SEARCH was introduced.
This commit is contained in:
parent
172fb22692
commit
32ba8d93af
1 changed files with 10 additions and 2 deletions
|
@ -272,8 +272,16 @@ complete -C'cd .'
|
|||
# CHECK: ../
|
||||
# CHECK: ./
|
||||
|
||||
# Check that cd works with minimal permissions (issue #10432)
|
||||
begin
|
||||
# Check that cd works with minimal permissions (issue #10432).
|
||||
# This is first supported on macOS 12.
|
||||
# `sysctl kern.osproductversion` emits something like:
|
||||
# kern.osproductversion: 14.3.1
|
||||
if test (uname) = "Darwin" && test (sysctl kern.osproductversion | string match -r \\d+) -lt 12
|
||||
# Not supported. Satisfy the CHECKs below.
|
||||
echo fake/a
|
||||
echo fake/a/b
|
||||
echo c
|
||||
else
|
||||
set -l oldpwd (pwd)
|
||||
set -l tmp (mktemp -d)
|
||||
cd $tmp
|
||||
|
|
Loading…
Reference in a new issue