Browse Source

tests: precommand-killing1: Use a dummy path that always exists

E.g., on Cygwin /etc/passwd does not necessarily exist.
pull/761/head
m0viefreak 4 years ago
committed by Daniel Shahaf
parent
commit
79b6e7e05f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      highlighters/main/test-data/precommand-killing1.zsh

+ 3
- 2
highlighters/main/test-data/precommand-killing1.zsh View File

@ -29,11 +29,12 @@
# -------------------------------------------------------------------------------------------------
hash sudo=false
touch foo
BUFFER='sudo -e /etc/passwd'
BUFFER='sudo -e ./foo'
expected_region_highlight=(
'1 4 precommand' # sudo
'6 7 single-hyphen-option' # -e
'9 19 path' # /etc/passwd
'9 13 path' # ./foo
)

Loading…
Cancel
Save