Skip to content

Commit b1d645b

Browse files
keszybzgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Zbigniew Jędrzejewski-Szmek <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fae9d76 commit b1d645b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ EDITOR=:
4646
# /usr/xpg4/bin/sh and /bin/ksh to bail out. So keep the unsets
4747
# deriving from the command substitution clustered with the other
4848
# ones.
49-
unset VISUAL EMAIL LANGUAGE $(perl -e '
49+
unset VISUAL EMAIL LANGUAGE COLUMNS $(perl -e '
5050
my @env = keys %ENV;
5151
my $ok = join("|", qw(
5252
TRACE

0 commit comments

Comments
 (0)