changeset 506:5baf4b01cae4

Tests: adjusted TODOs.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 02 Dec 2014 20:34:59 +0300
parents 9592b440ab00
children 34280f6b0bc6
files post_action.t proxy_cache_lock_ssi.t ssi.t
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/post_action.t
+++ b/post_action.t
@@ -79,7 +79,7 @@ unlike(http_get('/remote'), qr/HIDDEN/m,
 like(`cat ${\($t->testdir())}/access.log`, qr/post/, 'post action in logs');
 
 TODO: {
-local $TODO = 'broken in 1.5.4';
+local $TODO = 'broken in 1.5.4' unless $t->has_version('1.7.8');
 
 # the r->header_sent check in 1.5.4+ results in 
 # "header already sent" alerts
--- a/proxy_cache_lock_ssi.t
+++ b/proxy_cache_lock_ssi.t
@@ -101,7 +101,7 @@ like(http_get('/ssi.html'), qr/end/, 'ca
 http_end($s);
 
 TODO: {
-local $TODO = 'not yet';
+local $TODO = 'not yet' unless $t->has_version('1.7.8');
 
 cmp_ok(time() - $start, '<=', 3, 'parallel execution after lock timeout');
 
--- a/ssi.t
+++ b/ssi.t
@@ -160,7 +160,7 @@ like(http_get('/test-empty3.html'), qr/H
 like(http_get('/test-empty3.html'), qr/HTTP/, 'empty with proxy cached');
 
 TODO: {
-local $TODO = 'not yet';
+local $TODO = 'not yet' unless $t->has_version('1.7.8');
 
 like(http_get('/test-empty-postpone.html'), qr/HTTP.*XX/ms,
 	'empty with postpone_output 0');
@@ -193,7 +193,7 @@ like(http_get('/var_format.html'),
 	qr/x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d \w+x/, 'default ssi');
 
 TODO: {
-local $TODO = 'not yet';
+local $TODO = 'not yet' unless $t->has_version('1.7.8');
 
 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts');