Mercurial > hg > nginx-tests
changeset 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 | 64eabe6aa1f2 |
children | 13eafeb7d9cb |
files | lib/Test/Nginx.pm |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -221,7 +221,7 @@ sub run(;$) { my @globals = $self->{_test_globals} ? () : ('-g', "pid $testdir/nginx.pid; " . "error_log $testdir/error.log debug;"); - exec($NGINX, '-p', $testdir, '-c', 'nginx.conf', @globals), + exec($NGINX, '-p', "$testdir/", '-c', 'nginx.conf', @globals), or die "Unable to exec(): $!\n"; }