mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-13 19:57:53 +08: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:
parent
8195e9e9c1
commit
24e786f056
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user