aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-10-12 19:35:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-10-12 19:35:38 -0400
commit34557f5448e04366e7b64a402c0dd33decb6c346 (patch)
treef3ded698726ed3b3d22005fd390ab0fc518ef3b9 /src
parenta151a5c38510793830a63d74201e2d3561829170 (diff)
downloadpostgresql-34557f5448e04366e7b64a402c0dd33decb6c346.tar.gz
postgresql-34557f5448e04366e7b64a402c0dd33decb6c346.zip
Cause TestLib.pm to define $windows_os in all branches.
Back-port of a part of commit 690ed2b76ab91eb79ea04ee2bfbdc8a2693f2a37 that I'd depended on without realizing that it was only added recently. Since it seems entirely likely that other such tests will need to be back-patched in future, providing the flag seems like a better answer than just putting a test in-line. Per buildfarm.
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/TestLib.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm
index 9402e4462c3..2e04476052e 100644
--- a/src/test/perl/TestLib.pm
+++ b/src/test/perl/TestLib.pm
@@ -26,6 +26,7 @@ our @EXPORT = qw(
$tmp_check
$log_path
+ $windows_os
);
use Cwd;
@@ -38,6 +39,8 @@ use SimpleTee;
use Test::More;
+our $windows_os = $Config{osname} eq 'MSWin32' || $Config{osname} eq 'msys';
+
# Open log file. For each test, the log file name uses the name of the
# file launching this module, without the .pl suffix.
our ($tmp_check, $log_path);