Fail early properly even in the presence of -jN
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / RunMode.pm
index 0b24b95..5b60130 100644 (file)
@@ -93,10 +93,8 @@ sub _check_author_makefile {
   }
 
   if (@fail_reasons) {
-    print STDOUT "\nBail out!\n";
     print STDERR <<'EOE';
 
-
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 ======================== FATAL ERROR ===========================
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -133,6 +131,9 @@ EOE
     }
     print STDERR "\n\n\n";
 
+    require Time::HiRes;
+    Time::HiRes::sleep(0.005);
+    print STDOUT "\nBail out!\n";
     exit 1;
   }
 }