diff access_log.t @ 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 907e89fba9c3
children f75bc412e802
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');
 
 ###############################################################################