changeset 1191:a9187b424a94

Tests: restored access mode in open_log_file_cache test earlier. If something went wrong, that wouldn't leave directory in a bad state.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 16 Jun 2017 09:33:36 +0300
parents fcd65708672d
children 366d789f3cbf
files access_log.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/access_log.t	Thu Jun 15 19:42:26 2017 +0300
+++ b/access_log.t	Fri Jun 16 09:33:36 2017 +0300
@@ -158,6 +158,8 @@
 http_get('/cache?logname=first');
 http_get('/cache?logname=second');
 
+chmod 0755, $t->testdir() . '/dir';
+
 # wait for file to appear with nonzero size thanks to the flush parameter
 
 for (1 .. 10) {
@@ -238,8 +240,6 @@
 
 is($t->read_file('binary.log'), "$expected\n", 'binary');
 
-chmod 0755, $t->testdir() . '/dir';
-
 SKIP: {
 skip 'win32', 4 if $^O eq 'MSWin32';