From 0b5b3dcc0c603c9e1b3ad9d59b3d923a4b2d2437 Mon Sep 17 00:00:00 2001 From: m0viefreak Date: Tue, 11 Aug 2020 22:05:17 +0200 Subject: [PATCH] tests: parameter-to-global-alias: Use alias name less likely to clash --- highlighters/main/test-data/parameter-to-global-alias.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/highlighters/main/test-data/parameter-to-global-alias.zsh b/highlighters/main/test-data/parameter-to-global-alias.zsh index cd2283b..63f95da 100644 --- a/highlighters/main/test-data/parameter-to-global-alias.zsh +++ b/highlighters/main/test-data/parameter-to-global-alias.zsh @@ -28,12 +28,12 @@ # vim: ft=zsh sw=2 ts=2 et # ------------------------------------------------------------------------------------------------- -if type x >/dev/null; then - skip_test="Test is written on the assumption that 'x' is not a valid command name, but that assumption does not hold" +if type global_alias >/dev/null; then + skip_test="Test is written on the assumption that 'global_alias' is not a valid command name, but that assumption does not hold" return 0 fi -alias -g x=y -local s=x +alias -g global_alias=y +local s=global_alias BUFFER=$'$s'