mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-09-20 16:39:05 +02:00
tests: precommand-killing1: Use a dummy path that always exists
E.g., on Cygwin /etc/passwd does not necessarily exist.
This commit is contained in:
parent
3944a44ffe
commit
79b6e7e05f
|
@ -29,11 +29,12 @@
|
||||||
# -------------------------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
hash sudo=false
|
hash sudo=false
|
||||||
|
touch foo
|
||||||
|
|
||||||
BUFFER='sudo -e /etc/passwd'
|
BUFFER='sudo -e ./foo'
|
||||||
|
|
||||||
expected_region_highlight=(
|
expected_region_highlight=(
|
||||||
'1 4 precommand' # sudo
|
'1 4 precommand' # sudo
|
||||||
'6 7 single-hyphen-option' # -e
|
'6 7 single-hyphen-option' # -e
|
||||||
'9 19 path' # /etc/passwd
|
'9 13 path' # ./foo
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue