changeset 817:ada7d1ad985b

Tests: fixed occasional negative match failure in userid.t. "P3P" can appear as a substring in the Set-Cookie header value.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 28 Dec 2015 13:04:46 +0300
parents 77359b849cd5
children 685fc620d721
files userid.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/userid.t
+++ b/userid.t
@@ -153,7 +153,7 @@ is($cookie{'path'}, '/', 'path default')
 is($cookie{'domain'}, undef, 'domain default');
 is($cookie{'expires'}, undef, 'expires default');
 like($cookie{'uid'}, '/\w+={0,2}$/', 'mark default');
-unlike(http_get('/'), qr/P3P/, 'p3p default');
+unlike(http_get('/'), qr/^P3P/m, 'p3p default');
 like(http_get('/'), qr/X-Reset: 0/, 'uid reset variable default');
 
 # name, path, domain and p3p