Remove xt/compatibility/* at make clean
[gitmo/Mouse.git] / Makefile.PL
index 80baa6e..ecb51d7 100755 (executable)
@@ -54,6 +54,8 @@ sub create_moose_compatibility_test {
         '031_roles_applied_in_create.t' => 't/lib/* classes are not Moose classes/roles',
     );
 
+    my @compat_tests;
+
     File::Find::find(
         {
             wanted => sub {
@@ -84,10 +86,12 @@ sub create_moose_compatibility_test {
                     $src;
                 };
                 close $wfh;
+                push @compat_tests, $tmpfile;
             },
             no_chdir => 1
         },
         't',
     );
+    clean_files "@compat_tests";
 }