summaryrefslogtreecommitdiff
path: root/cpan/Win32/t
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2022-05-11 19:15:47 +0000
committerRicardo Signes <rjbs@users.noreply.github.com>2022-05-14 09:51:19 -0400
commit042c826b661ee2bcfe869118a756b72aec2c82bd (patch)
treeeb9d85d26d2f8ae8fa17954c392642729d577a3d /cpan/Win32/t
parentc8326bfe876669d28d5071ee9d5185c6f035d15b (diff)
downloadperl-042c826b661ee2bcfe869118a756b72aec2c82bd.tar.gz
Win32: synch with CPAN version 0.59
As discussed in: https://www.nntp.perl.org/group/perl.perl5.porters/2022/05/msg263707.html
Diffstat (limited to 'cpan/Win32/t')
-rw-r--r--cpan/Win32/t/Names.t9
1 files changed, 7 insertions, 2 deletions
diff --git a/cpan/Win32/t/Names.t b/cpan/Win32/t/Names.t
index e28e4a46af..a719020411 100644
--- a/cpan/Win32/t/Names.t
+++ b/cpan/Win32/t/Names.t
@@ -7,7 +7,7 @@ BEGIN {
}
use Win32;
-my $tests = 14;
+my $tests = 16;
$tests += 2 if Win32::IsWinNT();
plan tests => $tests;
@@ -28,10 +28,15 @@ my $archname = eval { Win32::GetArchName() };
is( $@, '', "Win32::GetArchName()" );
cmp_ok( length($archname), '>=', 3, " - checking returned architecture name" );
+# test Win32::GetChipArch()
+my $chiparch = eval { Win32::GetChipArch() };
+is( $@, '', "Win32::GetChipArch()" );
+like( $chiparch, '/^(0|5|6|9|12)$/', " - checking returned chip arch" );
+
# test Win32::GetChipName()
my $chipname = eval { Win32::GetChipName() };
is( $@, '', "Win32::GetChipName()" );
-cmp_ok( length($chipname), '>=', 3, " - checking returned chip name" );
+like( $chipname, '/^(0|386|486|586|2200|8664)$/', " - checking returned chip name");
# test Win32::GetOSName()
# - scalar context