Skip to content

Commit 34557f5

Browse files
committed
Cause TestLib.pm to define $windows_os in all branches.
Back-port of a part of commit 690ed2b 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.
1 parent a151a5c commit 34557f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/perl/TestLib.pm

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ our @EXPORT = qw(
2626
2727
$tmp_check
2828
$log_path
29+
$windows_os
2930
);
3031

3132
use Cwd;
@@ -38,6 +39,8 @@ use SimpleTee;
3839

3940
use Test::More;
4041

42+
our $windows_os = $Config{osname} eq 'MSWin32' || $Config{osname} eq 'msys';
43+
4144
# Open log file. For each test, the log file name uses the name of the
4245
# file launching this module, without the .pl suffix.
4346
our ($tmp_check, $log_path);

0 commit comments

Comments
 (0)