From: Stefano Lattarini Date: Sat, 23 Jun 2012 08:34:29 +0000 (+0200) Subject: tests: fix setup for older Zsh X-Git-Tag: v1.12.2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1e0300d38e7c79ec58a259c9c821d9469bb6c02;p=platform%2Fupstream%2Fautomake.git tests: fix setup for older Zsh * defs-static.in: After the addition of TAP-based tests and our renaming of "simple" test scripts from 'tests/foo.test' to 't/foo.sh', a test name is valid if it matches the wildcard "*.sh" or "*.tap", not the wildcard "*.test". Adjust accordingly. Signed-off-by: Stefano Lattarini --- diff --git a/defs-static.in b/defs-static.in index 1dfd8d3..0647dda 100644 --- a/defs-static.in +++ b/defs-static.in @@ -46,7 +46,7 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then # Note: the apparently useless 'eval' below are needed by at least # dash 0.5.2, to prevent it from bailing out with an error like # "Syntax error: Bad substitution" - if eval '[[ "$0" = *."test" ]]'; then + if eval '[[ "$0" = *."tap" || "$0" = *."sh" ]]'; then # Good, FUNCTION_ARGZERO option was already off when this file was # sourced. Thus we've nothing to do. argv0=$0