we agreed on neither enforcing en_US nor en_GB
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_script_server.t
index 1717236..7cd6fb4 100644 (file)
@@ -4,11 +4,16 @@ use warnings;
 use FindBin qw/$Bin/;
 use lib "$Bin/../lib";
 
+use File::Temp qw/ tempdir /;
+use Cwd;
 use Test::More;
 use Try::Tiny;
 
 use Catalyst::Script::Server;
 
+my $cwd = getcwd;
+chdir(tempdir(CLEANUP => 1));
+
 my $testopts;
 
 # Test default (no opts/args behaviour)
@@ -133,6 +138,10 @@ sub testBackgroundOptionWithFork {
 
     ## First, make sure we can get an app
     my $app = _build_testapp($argstring);
+
+    ## Sorry, don't really fork since this cause trouble in Test::Aggregate
+    $app->meta->add_around_method_modifier('daemon_fork', sub { return; });
+
     try {
         $app->run;
     }
@@ -197,5 +206,7 @@ sub restartopthash {
     return $val;
 }
 
+chdir($cwd);
+
 1;