test-lib: declare local variables as local
commitbaedc5954348b30faa421333289b30818daf36c3
authorMichael J Gruber <git@grubix.eu>
Wed, 9 Mar 2022 21:41:43 +0000 (9 22:41 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 22:02:45 +0000 (9 14:02 -0800)
treecb85ac365edd99784b46ff1e1da2c0558ffd14a2
parent131b94a10a77e40eb3b3ba276d07fb663e220cd1
test-lib: declare local variables as local

131b94a10a ("test-lib.sh: Use GLIBC_TUNABLES instead of MALLOC_CHECK_ on
glibc >= 2.34", 2022-03-04) introduced "local" variables without
declaring them as such. This conflicts with their use in some tests (at
least when running them with dash), leading to test failures in:

t0006-date.sh
t2002-checkout-cache-u.sh
t3430-rebase-merges.sh
t4138-apply-ws-expansion.sh
t4124-apply-ws-rule.sh

Declare those variables as local to let the tests pass again.

Signed-off-by: Michael J Gruber <git@grubix.eu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh