mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-01-15 22:37:00 +01: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
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue