Skip to content

Commit 9938932

Browse files
committed
test harness: Fix test failures under zsh 5.0.8 and older.
The output of test-data/opt-shwordsplit1.zsh on zsh 5.7 is: . 1..2 ## opt-shwordsplit1 # BUFFER=vim not ok 1 - [1,7] «$EDITOR» - expected (1 7 "function"), observed (1 7 "unknown-token"). # TODO "issue ok 2 - cardinality check # SKIP cardinality check disabled whilst regular test points are expected to fail On zsh 5.0.8, tap_escape() choked when called on the arguments argv=('[1,7]' '«vim»'). This patch fixes that. As you may have noticed, under zsh 5.7 the diagnostic message of test point 1 is truncated. That'll be fixed in the next commit.
1 parent e165f18 commit 9938932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-highlighting.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ typeset_p() {
105105
# Escape # as ♯ and newline as ↵ they are illegal in the 'description' part of TAP output
106106
# The string to escape is «"$@"»; the result is returned in $REPLY.
107107
tap_escape() {
108-
local s="$@"
108+
local s="${(j. .)@}"
109109
REPLY="${${s//'#'/♯}//$'\n'/↵}"
110110
}
111111

0 commit comments

Comments
 (0)