Skip to content

Commit 749b302

Browse files
committed
'main': Skip tests that break on msys2
Closes zsh-users#382.
1 parent f4d37b7 commit 749b302

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

highlighters/main/test-data/option-path_dirs.zsh

+13-10
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@
2727
# vim: ft=zsh sw=2 ts=2 et
2828
# -------------------------------------------------------------------------------------------------
2929

30-
## setup
31-
setopt PATH_DIRS
32-
mkdir -p foo/bar
33-
touch foo/bar/testing-issue-228
34-
chmod +x foo/bar/testing-issue-228
35-
path+=( "$PWD"/foo )
30+
if [[ $OSTYPE == msys ]]; then
31+
skip_test='Cannot chmod +x in msys2'
32+
else
33+
setopt PATH_DIRS
34+
mkdir -p foo/bar
35+
touch foo/bar/testing-issue-228
36+
chmod +x foo/bar/testing-issue-228
37+
path+=( "$PWD"/foo )
3638

37-
BUFFER='bar/testing-issue-228'
39+
BUFFER='bar/testing-issue-228'
3840

39-
expected_region_highlight=(
40-
"1 21 command" # bar/testing-issue-228
41-
)
41+
expected_region_highlight=(
42+
"1 21 command" # bar/testing-issue-228
43+
)
44+
fi

highlighters/main/test-data/path-broken-symlink.zsh

+10-6
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@
2727
# vim: ft=zsh sw=2 ts=2 et
2828
# -------------------------------------------------------------------------------------------------
2929

30-
ln -s /nonexistent broken-symlink
31-
BUFFER=': broken-symlink'
32-
CURSOR=5 # to make path_prefix ineligible
30+
if [[ $OSTYPE == msys ]]; then
31+
skip_test='Cannot create symlinks in msys2'
32+
else
33+
ln -s /nonexistent broken-symlink
34+
BUFFER=': broken-symlink'
35+
CURSOR=5 # to make path_prefix ineligible
3336

34-
expected_region_highlight=(
35-
"3 16 path" # broken-symlink
36-
)
37+
expected_region_highlight=(
38+
"3 16 path" # broken-symlink
39+
)
40+
fi

0 commit comments

Comments
 (0)