Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24e786f

Browse files
committed
Unset some local environment variables in TAP tests
Unset environment variables that control message language, so that wecan compare some program output with expected strings. This is verysimilar to what pg_regress does.
1 parent8195e9e commit24e786f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/test/perl/TestLib.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ BEGIN
3939
}
4040
}
4141

42+
# Set to untranslated messages, to be able to compare program output
43+
# with expected strings.
44+
delete$ENV{LANGUAGE};
45+
delete$ENV{LC_ALL};
46+
$ENV{LC_MESSAGES} ='C';
47+
4248
delete$ENV{PGCONNECT_TIMEOUT};
4349
delete$ENV{PGDATA};
4450
delete$ENV{PGDATABASE};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp