Fail early if full test is run in a stale checkout
[dbsrgits/DBIx-Class.git] / t / 02_standalone_test_classes.t
index 55df0df..48c70ac 100644 (file)
@@ -21,7 +21,7 @@ find({
       }
 
       local $SIG{__WARN__} = sub { warn @_ unless $_[0] =~ /\bdeprecated\b/i };
-      require( ($_ =~ /(.+)/)[0] ); # untaint
+      require( ( $_ =~ m| t/lib/ (.+) |x )[0] ); # untaint and strip lib-part (. is unavailable under -T)
       exit 0;
     }