Skip to content

Commit 79b6e7e

Browse files
m0viedanielshahaf
authored andcommitted
tests: precommand-killing1: Use a dummy path that always exists
E.g., on Cygwin /etc/passwd does not necessarily exist.
1 parent 3944a44 commit 79b6e7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

highlighters/main/test-data/precommand-killing1.zsh

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
# -------------------------------------------------------------------------------------------------
3030

3131
hash sudo=false
32+
touch foo
3233

33-
BUFFER='sudo -e /etc/passwd'
34+
BUFFER='sudo -e ./foo'
3435

3536
expected_region_highlight=(
3637
'1 4 precommand' # sudo
3738
'6 7 single-hyphen-option' # -e
38-
'9 19 path' # /etc/passwd
39+
'9 13 path' # ./foo
3940
)

0 commit comments

Comments
 (0)