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
+++ 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');
 
 ###############################################################################