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:
m0viefreak 2020-08-09 21:58:48 +02:00 committed by Daniel Shahaf
parent 3944a44ffe
commit 79b6e7e05f

View file

@ -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
) )