Force xt/ tests to run on anything involving a create_distdir
[dbsrgits/DBIx-Class.git] / xt / pod.t
index 92d650e..f79cbae 100644 (file)
--- a/xt/pod.t
+++ b/xt/pod.t
@@ -13,4 +13,5 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_pod') ) {
     : plan skip_all => "Test needs: $missing"
 }
 
-Test::Pod::all_pod_files_ok();
+my $generated_pod_dir = 'maint/.Generated_Pod';
+Test::Pod::all_pod_files_ok( 'lib', -d $generated_pod_dir ? $generated_pod_dir : () );