comparison fastcgi_buffering.t @ 338:8f0010dc4b09

Tests: fixed startup order. FCGI daemon start postponed until after nginx start evaluated. Otherwize in case of evaluation error it kills FCGI daemon which makes prove upset.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 19 Sep 2013 14:53:11 +0400
parents b6c7db85bad0
children c28ecaef065f
comparison
equal deleted inserted replaced
337:43d40a678a64 338:8f0010dc4b09
60 60
61 $t->write_file('inmemory.html', 61 $t->write_file('inmemory.html',
62 '<!--#include virtual="/include$request_uri" set="x" -->' . 62 '<!--#include virtual="/include$request_uri" set="x" -->' .
63 'set: <!--#echo var="x" -->'); 63 'set: <!--#echo var="x" -->');
64 64
65 $t->run_daemon(\&fastcgi_daemon);
66
67 eval { 65 eval {
68 open OLDERR, ">&", \*STDERR; close STDERR; 66 open OLDERR, ">&", \*STDERR; close STDERR;
69 $t->run(); 67 $t->run();
70 open STDERR, ">&", \*OLDERR; 68 open STDERR, ">&", \*OLDERR;
71 }; 69 };
72 plan(skip_all => 'no fastcgi_buffering') if $@; 70 plan(skip_all => 'no fastcgi_buffering') if $@;
71
72 $t->run_daemon(\&fastcgi_daemon);
73 73
74 $t->plan(2)->waitforsocket('127.0.0.1:8081'); 74 $t->plan(2)->waitforsocket('127.0.0.1:8081');
75 75
76 ############################################################################### 76 ###############################################################################
77 77