import FCGI-ProcManager 0.17 from CPAN
[catagits/FCGI-ProcManager.git] / t / exporter.t
index 6580997..4514858 100644 (file)
@@ -5,7 +5,7 @@
 # General Public License, Version 2.1, a copy of which can be
 # found in the "COPYING" file of this distribution.
 
-# $Id: exporter.t,v 1.3 2001/01/31 06:57:09 muaddib Exp $
+# $Id: exporter.t,v 1.6 2001/04/23 16:13:45 muaddie Exp $
 
 use strict;
 use Test;
@@ -18,17 +18,18 @@ ok pm_parameter('n_processes',100) == 100;
 ok pm_parameter('n_processes',2) == 2;
 ok pm_parameter('n_processes',0) == 0;
 
-ok pm_manage();
+ok !pm_manage();
 
 #ok pm_parameter('n_processes',-3);
 #eval { pm_manage(); };
 #ok $@ =~ /dying from number of processes exception: -3/;
 #undef $@;
 
-pm_parameter('n_processes',10);
-
-#pm_manage();
-#sample_request_loop();
+if ($ENV{PM_N_PROCESSES}) {
+  pm_parameter('n_processes',$ENV{PM_N_PROCESSES});
+  pm_manage();
+  sample_request_loop();
+}
 
 exit 0;