Skip to content

Commit 6cba957

Browse files
committed
Fix t/Names.t to succeed even if %PROCESSOR_ARCHITECTURE% isn't set
1 parent 26f32fc commit 6cba957

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Revision history for the Perl extension Win32.
22

3+
0.47 [2013-02-21]
4+
- Make sure %PROCESSOR_ARCHITECTURE% is defined before calling
5+
Win32::GetArchName() in t/Names.t. It may be undefined when
6+
the test is running under Cygwin crond.
7+
38
0.46 [2013-02-19]
49
- add Win2012/Win8 detection (thanks to Michiel Beijen) [rt#82572]
510
[perl#116352]

META.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--- #YAML:1.0
22
name: Win32
33
abstract: Interfaces to some Win32 API Functions
4-
version: 0.46
4+
version: 0.47
55
author:
66
- Jan Dubois <[email protected]>
77
license: perl

Win32.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package Win32;
88
require DynaLoader;
99

1010
@ISA = qw|Exporter DynaLoader|;
11-
$VERSION = '0.46';
11+
$VERSION = '0.47';
1212
$XS_VERSION = $VERSION;
1313
$VERSION = eval $VERSION;
1414

t/Names.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if (Win32::IsWinNT()) {
2323
}
2424

2525
# test Win32::GetArchName()
26+
$ENV{PROCESSOR_ARCHITECTURE} ||= "unknown";
2627
my $archname = eval { Win32::GetArchName() };
2728
is( $@, '', "Win32::GetArchName()" );
2829
cmp_ok( length($archname), '>=', 3, " - checking returned architecture name" );

0 commit comments

Comments
 (0)