Mercurial > hg > nginx-tests
changeset 616:e9f48f1e905b
Tests: avoid alert/crit error logs in access_log.t.
A request would be attempted to be logged to a file path containing undefined
variables, resulting in alerts with the current configuration on win32 (or
crit, on unix) due to trying to open a directory as the file path for logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 02 Jul 2015 18:41:59 +0300 |
parents | f27fb891503c |
children | 35832048546e |
files | access_log.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/access_log.t Thu Jul 02 15:06:39 2015 +0300 +++ b/access_log.t Thu Jul 02 18:41:59 2015 +0300 @@ -83,7 +83,7 @@ } location /varlog { - access_log %%TESTDIR%%/${arg_logname} test; + access_log %%TESTDIR%%/varlog_${arg_logname} test; return 200 OK; } } @@ -202,10 +202,10 @@ # test log destinations with variables -$log = $t->read_file('0'); +$log = $t->read_file('varlog_0'); is($log, "/varlog:200\n", 'varlog literal zero name'); -$log = $t->read_file('filename'); +$log = $t->read_file('varlog_filename'); is($log, "/varlog:200\n", 'varlog good name'); ###############################################################################