Re: Change 31935: Upgrade to Win32-0.32
authorJerry D. Hedden <jdhedden@cpan.org>
Mon, 24 Sep 2007 20:23:49 +0000 (16:23 -0400)
committerSteve Hay <SteveHay@planit.com>
Tue, 25 Sep 2007 07:52:54 +0000 (07:52 +0000)
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510709241723o58cc1167m2c44221b77959994@mail.gmail.com>

(Check Win32::GetLastError() rather than $^E for Cygwin, on which $^E
is the last posix error (the same as $!), not the last Win32 error)

p4raw-id: //depot/perl@31956

ext/Win32/Win32.pm
ext/Win32/t/Names.t

index acdd4fd..6c18a23 100644 (file)
@@ -8,7 +8,7 @@ BEGIN {
     require DynaLoader;
 
     @ISA = qw|Exporter DynaLoader|;
-    $VERSION = '0.32';
+    $VERSION = '0.32_01';
     $XS_VERSION = $VERSION;
     $VERSION = eval $VERSION;
 
index bfe8797..509751d 100644 (file)
@@ -16,7 +16,7 @@ plan tests => $tests;
 if (Win32::IsWinNT()) {
     my $domain = eval { Win32::DomainName() };
     SKIP: {
-       skip 'The Workstation service has not been started', 2 if $^E == 2138;
+       skip('The Workstation service has not been started', 2) if (Win32::GetLastError() == 2138);
        is( $@, '', "Win32::DomainName()" );
        like( $domain, '/^[a-zA-Z0-9!@#$%^&()_\'{}.~-]+$/', "  - checking returned domain" );
     }