comparison syslog.t @ 1020:196d33c2bb45

Tests: removed TODO and try_run() checks for legacy versions. Also removed now unused spdy.t and shmem prerequisite.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 31 Aug 2016 18:21:07 +0300
parents 882267679006
children 6620cd57a96a
comparison
equal deleted inserted replaced
1019:41139d6f8b7b 1020:196d33c2bb45
22 select STDERR; $| = 1; 22 select STDERR; $| = 1;
23 select STDOUT; $| = 1; 23 select STDOUT; $| = 1;
24 24
25 plan(skip_all => 'win32') if $^O eq 'MSWin32'; 25 plan(skip_all => 'win32') if $^O eq 'MSWin32';
26 26
27 my $t = Test::Nginx->new()->has(qw/http limit_req/); 27 my $t = Test::Nginx->new()->has(qw/http limit_req/)->plan(59);
28 28
29 $t->write_file_expand('nginx.conf', <<'EOF'); 29 $t->write_file_expand('nginx.conf', <<'EOF');
30 30
31 %%TEST_GLOBALS%% 31 %%TEST_GLOBALS%%
32 32
145 145
146 $t->waitforfile($t->testdir . '/s_glob.log'); 146 $t->waitforfile($t->testdir . '/s_glob.log');
147 $t->waitforfile($t->testdir . '/s_http.log'); 147 $t->waitforfile($t->testdir . '/s_http.log');
148 $t->waitforfile($t->testdir . '/s_if.log'); 148 $t->waitforfile($t->testdir . '/s_if.log');
149 149
150 $t->try_run('no syslog nohostname')->plan(59); 150 $t->run();
151 151
152 ############################################################################### 152 ###############################################################################
153 153
154 parse_syslog_message('error_log', get_syslog('/e')); 154 parse_syslog_message('error_log', get_syslog('/e'));
155 parse_syslog_message('access_log', get_syslog('/a')); 155 parse_syslog_message('access_log', get_syslog('/a'));