# HG changeset patch # User Sergey Kandaurov # Date 1435851719 -10800 # Node ID e9f48f1e905ba6acb60fef954577870feb92aaf4 # Parent f27fb891503cef46dba7e7fa2e072d85f09bf723 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. diff --git a/access_log.t b/access_log.t --- a/access_log.t +++ b/access_log.t @@ -83,7 +83,7 @@ http { } location /varlog { - access_log %%TESTDIR%%/${arg_logname} test; + access_log %%TESTDIR%%/varlog_${arg_logname} test; return 200 OK; } } @@ -202,10 +202,10 @@ is($log, "/multi:200\n", 'multiple logs # 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'); ###############################################################################