From 87c4232fd35fc3d1ff06189e886bffb382f6ca87 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 22 Jul 2014 00:42:36 -0400 Subject: [PATCH] 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. --- src/test/perl/TestLib.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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}; -- 2.40.0