Turn off buffering when running under the test harness (it's a hack,
[catagits/Catalyst-Devel.git] / lib / Catalyst / Helper.pm
index 4ac8829..76cd37b 100644 (file)
@@ -1003,6 +1003,10 @@ if ( $debug ) {
 # need to be reloaded for each restart.
 require Catalyst;
 
+# If this isn't done, then the Catalyst::Devel tests for the restarter
+# fail.
+$| = 1 if $ENV{HARNESS_ACTIVE};
+
 my $runner = sub {
     # This is require instead of use so that the above environment
     # variables can be set at runtime.