tests: unset COLUMNS inherited from environment
$COLUMNS must be unset to not interfere with the tests. The tests already ignore the terminal size because output is redirected to a file, but COLUMNS overrides terminal size detection and changes the test output away from the standard 80. Reported-by: Jeff King <peff@peff.net> Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Zbigniew Jędrzejewski-Szmek committed
Mar 27, 2012 at 08:22 UTC
b1d645b58ac6c96ffdc8d9a01f0b44a10deb43f9
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -46,7 +46,7 @@ EDITOR=:
46
# /usr/xpg4/bin/sh and /bin/ksh to bail out. So keep the unsets
47
# deriving from the command substitution clustered with the other
48
# ones.
49
-unset VISUAL EMAIL LANGUAGE $(perl -e '
49
+unset VISUAL EMAIL LANGUAGE COLUMNS $(perl -e '
50
my @env = keys %ENV;
51
my $ok = join("|", qw(
52
TRACE