From: Peter Eisentraut Date: Tue, 22 Jul 2014 04:42:36 +0000 (-0400) Subject: Unset some local environment variables in TAP tests X-Git-Tag: REL9_5_ALPHA1~1695 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24e786f056c0bf009815813de1d7f58ee09f554e;p=postgresql Unset some local environment variables in TAP tests Unset environment variables that control message language, so that we can compare some program output with expected strings. This is very similar to what pg_regress does. --- diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index f80d1c5bd7..e6a8a4ebe3 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -39,6 +39,12 @@ BEGIN } } +# Set to untranslated messages, to be able to compare program output +# with expected strings. +delete $ENV{LANGUAGE}; +delete $ENV{LC_ALL}; +$ENV{LC_MESSAGES} = 'C'; + delete $ENV{PGCONNECT_TIMEOUT}; delete $ENV{PGDATA}; delete $ENV{PGDATABASE};