Files
fish-shell/tests/checks/default-setup-path.fish
Nahor 440e7fcbc1 Fix failing system tests on Cygwin
The main changes are:
- disabling some checks related to POSIX file permissions when a filesystem is
mounted with "noacl" (default on MSYS2)
- disabling some checks related to symlinks when using fake ones (file copy)

Windows with acl hasn't been tested because 1) Cygwin itself does not have any
Rust package yet to compile fish, and 2) MSYS2 defaults to `noacl`

Part of #12171
2026-04-11 18:55:00 +08:00

20 lines
630 B
Fish

#RUN: fish=%fish %fish %s
# Cygwin/MSYS PATH automatically inherits the Windows PATH
# REQUIRES: %fish -c "not __fish_is_cygwin"
if command -q getconf
# (no env -u, some systems don't support that)
set -l getconf (command -s getconf)
set -e PATH
$fish -c 'test "$PATH" = "$('"$getconf"' PATH)"; and echo Success'
else
# this is DEFAULT_PATH
# the first element (usually `/usr/local/bin`) depends on PREFIX set in CMake, so we ignore it
set -e PATH
$fish -c 'test "$PATH[2..]" = "/usr/bin:/bin"; and echo Success'
end
# CHECK: Success
# Note: $PATH is now busted, I suggest abandoning this file.