summaryrefslogtreecommitdiff
path: root/t/run
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2014-12-09 15:06:05 +1100
committerTony Cook <tony@develop-help.com>2015-01-06 09:30:32 +1100
commita64c093f81b2020087bd2a8ccb9f74a862ec194f (patch)
treedd444bf3bfccb3e7111b903a2816341e96cd8a18 /t/run
parent1eea96ba8514738ce13016110ff0c48d06bc862f (diff)
downloadperl-a64c093f81b2020087bd2a8ccb9f74a862ec194f.tar.gz
minitest: miniperl on win32 always displays the x86 arch, so skip testing it
Diffstat (limited to 't/run')
-rw-r--r--t/run/switches.t18
1 files changed, 11 insertions, 7 deletions
diff --git a/t/run/switches.t b/t/run/switches.t
index 09b77c7d7e..78915e0175 100644
--- a/t/run/switches.t
+++ b/t/run/switches.t
@@ -298,13 +298,17 @@ is runperl(stderr => 1, prog => '#!perl -M'),
local $TODO = ''; # these ones should work on VMS
# there are definitely known build configs where this test will fail
# DG/UX comes to mind. Maybe we should remove these special cases?
- my $v = sprintf "%vd", $^V;
- my $ver = $Config{PERL_VERSION};
- my $rel = $Config{PERL_SUBVERSION};
- like( runperl( switches => ['-v'] ),
- qr/This is perl 5, version \Q$ver\E, subversion \Q$rel\E \(v\Q$v\E(?:[-*\w]+| \([^)]+\))?\) built for \Q$Config{archname}\E.+Copyright.+Larry Wall.+Artistic License.+GNU General Public License/s,
- '-v looks okay' );
-
+ SKIP:
+ {
+ skip "Win32 miniperl produces a default archname in -v", 1
+ if $^O eq 'MSWin32' && is_miniperl;
+ my $v = sprintf "%vd", $^V;
+ my $ver = $Config{PERL_VERSION};
+ my $rel = $Config{PERL_SUBVERSION};
+ like( runperl( switches => ['-v'] ),
+ qr/This is perl 5, version \Q$ver\E, subversion \Q$rel\E \(v\Q$v\E(?:[-*\w]+| \([^)]+\))?\) built for \Q$Config{archname}\E.+Copyright.+Larry Wall.+Artistic License.+GNU General Public License/s,
+ '-v looks okay' );
+ }
}
# Tests for -h