# HG changeset patch # User Sergey Kandaurov # Date 1451297086 -10800 # Node ID ada7d1ad985bb26044d7600515c43d7b9892ac63 # Parent 77359b849cd57244ba8cdc079d8390b9fe8d88d1 Tests: fixed occasional negative match failure in userid.t. "P3P" can appear as a substring in the Set-Cookie header value. diff --git a/userid.t b/userid.t --- 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