Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit a8b0188

Browse files
author
Reini Urban
committed
Config: FIXME: skip MSWin32 XSConfig.t
1 parent 9584f1a commit a8b0188

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

ext/Config/t/XSConfig.t

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/usr/bin/perl
2-
3-
if (scalar keys %Config:: > 2) {
4-
print "0..1 #SKIP Cannot test with static or builtin Config\n";
5-
exit;
2+
BEGIN {
3+
$| = 1;
4+
if (scalar keys %Config:: > 2) {
5+
print "1..0 #SKIP Cannot test with static or builtin Config\n";
6+
exit(0);
7+
}
8+
if ($ENV{PERL_CORE} and $^O eq 'MSWin32') {
9+
print "1..0 #SKIP broken win32 CORE test\n";
10+
exit(0);
11+
}
612
}
713

814
require Config; #this is supposed to be XS config
@@ -21,8 +27,8 @@ unless (isXSUB($cv)) {
2127
if (-d 'regen') { #on CPAN
2228
warn "Config:: is not XS Config";
2329
} else {
24-
print "0..1 #SKIP Config:: is not XS Config, miniperl?\n";
25-
exit;
30+
print "1..0 #SKIP Config:: is not XS Config, miniperl?\n";
31+
exit(0);
2632
}
2733
}
2834

0 commit comments

Comments
 (0)