Skip to content

Commit 66d485c

Browse files
committed
Tests: unbreak dav tests on Perl < 5.12.
1 parent eba71cb commit 66d485c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dav.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,18 @@ EOF
119119

120120
like($r, qr/201 Created.*(Content-Length|\x0d\0a0\x0d\x0a)/ms, 'mkcol');
121121

122+
SKIP: {
123+
skip 'perl too old', 1 if !$^V or $^V lt v5.12.0;
124+
122125
TODO: {
123126
local $TODO = 'not yet' unless $t->has_version('1.17.7');
124127

125128
like($r, qr!(?(?{ $r =~ /Location/ })Location: /test/)!, 'mkcol location');
126129

127130
}
128131

132+
}
133+
129134
$r = http(<<EOF);
130135
COPY /test/ HTTP/1.1
131136
Host: localhost

0 commit comments

Comments
 (0)