This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] Re: Win32 modules & cygwin
[perl5.git] / ext / Win32CORE / t / win32core.t
index 2231530..7c637bb 100644 (file)
@@ -1,6 +1,15 @@
 #!perl
 
-use Test;
-BEGIN { plan tests => 1 };
-use Win32CORE;
-ok(1);
+use Test::More;
+BEGIN {
+    if ( $ENV{PERL_CORE} ) {
+    require Config;
+       if ( $Config::Config{extensions} !~ /(?<!\S)Win32CORE(?!\S)/ ) {
+           plan skip_all => "Win32CORE extension not built";
+           exit();
+       }
+    }
+
+    plan tests => 1;
+};
+use_ok( "Win32CORE" );