Skip to content

Commit 6d5372a

Browse files
committed
tests: parameter-to-global-alias: Fix a false positive failure when 'x' happens to be a valid external command name.
Reported on issue #757 along with other issues.
1 parent e9cad14 commit 6d5372a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

highlighters/main/test-data/parameter-to-global-alias.zsh

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
# vim: ft=zsh sw=2 ts=2 et
2929
# -------------------------------------------------------------------------------------------------
3030

31+
if type x >/dev/null; then
32+
skip_test="Test is written on the assumption that 'x' is not a valid command name, but that assumption does not hold"
33+
return 0
34+
fi
3135
alias -g x=y
3236
local s=x
3337

0 commit comments

Comments
 (0)