Merge branch 'master' into psgi
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_script_fastcgi.t
index ef3d007..06300f5 100644 (file)
@@ -39,6 +39,10 @@ testOption( [ qw/-e/ ], [undef, opthash(keep_stderr => 1)] );
 testOption( [ qw/--nproc 6/ ], [undef, opthash(nproc => 6)] );
 testOption( [ qw/--n 6/ ], [undef, opthash(nproc => 6)] );
 
+# title
+testOption( [ qw/--title foo/ ], [undef, opthash(title => 'foo')] );
+testOption( [ qw/-t foo/ ], [undef, opthash(title => 'foo')] );
+
 done_testing;
 
 sub testOption {
@@ -59,11 +63,8 @@ sub testOption {
 # Returns the hash expected when no flags are passed
 sub opthash {
     return {
-        pidfile => undef,
-        keep_stderr => undef,
-        detach => undef,
-        nproc => undef,
-        manager => undef,
+        (map { ($_ => undef) } qw(pidfile keep_stderr detach nproc manager)),
+        title => 'perl-fcgi-pm [TestAppToTestScripts]',
         @_,
     };
 }