Turn off buffering when running under the test harness (it's a hack,
Dave Rolsky [Tue, 28 Apr 2009 01:49:09 +0000 (01:49 +0000)]
but better than just turning off buffering entirely).

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.