# HG changeset patch # User Maxim Dounin # Date 1424396766 -10800 # Node ID 084f8c8cb6481df6730b6b36680fb950a01dd737 # Parent 64eabe6aa1f2815dce6beba3cca9d9d29c4aaf5c Tests: compatibility with old nginx versions. Before nginx 1.3.5, a trailing slash was required in the prefix supplied via "-p" switch. diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- 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"; }