Skip Menu |

This queue is for tickets about the Sniffer-HTTP CPAN distribution.

Report information
The Basics
Id: 107349
Status: resolved
Priority: 0/
Queue: Sniffer-HTTP

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.23
Fixed in: (no value)



Subject: Tests fail if running under root
See http://www.cpantesters.org/cpan/report/c88b8e84-c3d1-11e3-981d-cb7b19a64b94 for a sample fail report. I could also produce a similar failure on a freebsd system with perl 5.20.2 --- the test was fine as non-root, and failed as root.
Subject: Re: [rt.cpan.org #107349] Tests fail if running under root
Date: Sun, 27 Sep 2015 10:20:34 +0200
To: bug-Sniffer-HTTP [...] rt.cpan.org
From: Max Maischein <corion [...] cpan.org>
Hello Slaven, Am 26.09.2015 um 11:12 schrieb Slaven_Rezic via RT: Show quoted text
> Sat Sep 26 05:12:53 2015: Request 107349 was acted upon. > Transaction: Ticket created by SREZIC > Queue: Sniffer-HTTP > Subject: Tests fail if running under root > Broken in: 0.23 > Severity: (no value) > Owner: Nobody > Requestors: SREZIC@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=107349 > > > > See http://www.cpantesters.org/cpan/report/c88b8e84-c3d1-11e3-981d-cb7b19a64b94 for a sample fail report. > > I could also produce a similar failure on a freebsd system with perl 5.20.2 --- the test was fine as non-root, and failed as root. >
Thanks for the report. This seems to be the case of a too fragile test, as I'm comparing Perl data structures (HTTP::Response) against a premade object. It seems that in the failing case, the key '::std_case' is added where my premade object doesn't have it. I will have to make the test more resilient and likely just check the headers themselves and maybe the status code+URL instead of comparing the structures. -max
The test failure was hopefully fixed in 0.24, now on its way to CPAN