comparison lib/Test/Nginx.pm @ 524:084f8c8cb648

Tests: compatibility with old nginx versions. Before nginx 1.3.5, a trailing slash was required in the prefix supplied via "-p" switch.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 20 Feb 2015 04:46:06 +0300
parents 43e05ac6c23c
children 93af034fda47
comparison
equal deleted inserted replaced
523:64eabe6aa1f2 524:084f8c8cb648
219 219
220 if ($pid == 0) { 220 if ($pid == 0) {
221 my @globals = $self->{_test_globals} ? 221 my @globals = $self->{_test_globals} ?
222 () : ('-g', "pid $testdir/nginx.pid; " 222 () : ('-g', "pid $testdir/nginx.pid; "
223 . "error_log $testdir/error.log debug;"); 223 . "error_log $testdir/error.log debug;");
224 exec($NGINX, '-p', $testdir, '-c', 'nginx.conf', @globals), 224 exec($NGINX, '-p', "$testdir/", '-c', 'nginx.conf', @globals),
225 or die "Unable to exec(): $!\n"; 225 or die "Unable to exec(): $!\n";
226 } 226 }
227 227
228 # wait for nginx to start 228 # wait for nginx to start
229 229