X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_fork.t;h=bd7054efca03af21327d696aef7a982444600f88;hb=08ace8f70b0bbd54ebbd4aa525514039f6ac1237;hp=5871dcb44bff7c70cfeac87c8b21a846088c7984;hpb=31b71f4bd3cf4137d75cce6e9fe520af752e3c51;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_fork.t b/t/live_fork.t index 5871dcb..bd7054e 100644 --- a/t/live_fork.t +++ b/t/live_fork.t @@ -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 { @@ -26,8 +31,7 @@ plan tests => 13; # otherwise my $result_ref = eval { Load($result) }; ok($result_ref, 'is YAML'); - is($result_ref->{code}, 0, 'exited successfully'); - like($result_ref->{result}, qr{^/bin/ls[^:]}, 'contains ^/bin/ls$'); + is($result_ref->{result}, 0, 'exited OK'); } { @@ -40,6 +44,7 @@ plan tests => 13; # otherwise ok($result_ref, 'is YAML'); is($result_ref->{code}, 0, 'exited successfully'); like($result_ref->{result}, qr{^/bin/ls[^:]}, 'contains ^/bin/ls$'); + like($result_ref->{result}, qr{\n.*\n}m, 'contains two newlines'); } { fork: