Skip fork tests on remote servers
Andy Grundman [Tue, 27 Mar 2007 22:18:11 +0000 (22:18 +0000)]
t/live_fork.t

index 0dfe7f5..bd7054e 100644 (file)
@@ -15,7 +15,12 @@ use FindBin;
 use lib "$FindBin::Bin/lib";
 use Catalyst::Test qw(TestApp);
 
-plan 'skip_all' if !-e '/bin/ls'; # see if /bin/ls exists
+plan skip_all => 'Using remote server'
+    if $ENV{CATALYST_SERVER};
+    
+plan skip_all => 'Skipping fork tests: no /bin/ls'
+    if !-e '/bin/ls'; # see if /bin/ls exists
+    
 plan tests => 13; # otherwise
 
 {