1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-08 07:21:33 +03:00

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.
This commit is contained in:
Peter Eisentraut 2014-07-22 00:42:36 -04:00
parent 2cf489301e
commit 87c4232fd3

View File

@ -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{PGCONNECT_TIMEOUT};
delete $ENV{PGDATA}; delete $ENV{PGDATA};
delete $ENV{PGDATABASE}; delete $ENV{PGDATABASE};