Add permanent plumbing for _TempExtlib (d0435d75)
[dbsrgits/DBIx-Class-Historic.git] / xt / extra / internals / optional_deps.t
index f2feb4e..c1aa96e 100644 (file)
@@ -17,8 +17,12 @@ use Scalar::Util();
 use MRO::Compat();
 use Carp 'confess';
 use List::Util 'shuffle';
+use Config;
 
 SKIP: {
+  skip 'Lean load pattern testing makes no sense with TempExtlib', 1
+    if grep { $_ =~ /TempExtlib/ } @INC;
+
   skip 'Lean load pattern testing unsafe with $ENV{PERL5OPT}', 1
     if $ENV{PERL5OPT};
 
@@ -28,6 +32,9 @@ SKIP: {
   skip 'Lean load pattern testing useless with $ENV{RELEASE_TESTING}', 1
     if $ENV{RELEASE_TESTING};
 
+  skip 'Lean load pattern testing useless under cperl', 1
+    if $Config{usecperl};
+
   is_deeply
     $inc_before,
     [],