From 3259fe338d74ffa756a719e0fd63ad2be53c2978 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Sun, 6 Jan 2019 21:38:13 -0600 Subject: [PATCH] Revert "tests: Run tests in an anon function to catch global variables" This reverts commit ba2d8fcf7642edf0873105e8d7fdd957438e6972. Breaks 4.3.12 and .11 --- tests/test-highlighting.zsh | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/test-highlighting.zsh b/tests/test-highlighting.zsh index 8e61cbb..595ebc9 100755 --- a/tests/test-highlighting.zsh +++ b/tests/test-highlighting.zsh @@ -33,7 +33,6 @@ setopt NO_UNSET WARN_CREATE_GLOBAL local -r root=${0:h:h} -(){ # Check an highlighter was given as argument. [[ -n "$1" ]] || { echo >&2 "Bail out! You must provide the name of a valid highlighter as argument." @@ -220,4 +219,3 @@ for data_file in $root/highlighters/$1/test-data/*.zsh; do done exit $something_failed -} "$@"