Skip Menu |
 

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

Report information
The Basics
Id: 103794
Status: open
Priority: 0/
Queue: HTTP-Server-Simple

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

Bug Information
Severity: Normal
Broken in: 0.50
Fixed in: (no value)



Subject: Tests fail in FreeBSD jail
Download (untitled) / with headers
text/plain 2.1k
It looks like the test plan calls for 55 tests while on a jail, but only 45 tests are run. FreeBSD operator.ny1.nyi.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 # sysctl -n security.jail.jailed 1 # perl -I ./lib/ t/04cgi.t 1..55 ok 1 - Constructor set port correctly ok 2 - pid is numeric CGIServer: You can connect to your server at http://localhost:46292/ ok 3 - [GET] no file ok 4 - [POST] no file ok 5 - [HEAD] no file ok 6 - [PUT] no file ok 7 - [DELETE] no file ok 8 - [PATCH] no file ok 9 - method - server_software ok 10 - method - request_method ok 11 - method - server_port ok 12 - method - path_info ok 13 - Environment - PATH_INFO ok 14 - Environment - SERVER_PROTOCOL ok 15 - Environment - REQUEST_METHOD ok 16 - Environment - REQUEST_URI ok 17 - Environment - SERVER_SOFTWARE ok 18 - Environment - QUERY_STRING ok 19 - Environment - SERVER_PORT ok 20 - method (absolute URL) - server_software ok 21 - method (absolute URL) - request_method ok 22 - method (absolute URL) - server_port ok 23 - method (absolute URL) - path_info ok 24 - Environment (absolute URL) - PATH_INFO ok 25 - Environment (absolute URL) - SERVER_PROTOCOL ok 26 - Environment (absolute URL) - REQUEST_METHOD ok 27 - Environment (absolute URL) - REQUEST_URI ok 28 - Environment (absolute URL) - SERVER_SOFTWARE ok 29 - Environment (absolute URL) - QUERY_STRING ok 30 - Environment (absolute URL) - SERVER_PORT ok 31 - method (absolute URL) - server_software ok 32 - method (absolute URL) - request_method ok 33 - method (absolute URL) - server_port ok 34 - method (absolute URL) - path_info ok 35 - Environment (absolute URL) - PATH_INFO ok 36 - Environment (absolute URL) - SERVER_PROTOCOL ok 37 - Environment (absolute URL) - REQUEST_METHOD ok 38 - Environment (absolute URL) - REQUEST_URI ok 39 - Environment (absolute URL) - SERVER_SOFTWARE ok 40 - Environment (absolute URL) - QUERY_STRING ok 41 - Environment (absolute URL) - SERVER_PORT ok 42 - Didn't decode already ok 43 - Did decode already ok 44 - uses HTTP_COOKIE ok 45 - Signaled 1 process successfully # Looks like you planned 55 tests but ran 45.
Subject: Re: [rt.cpan.org #103794] Tests fail in FreeBSD jail
Date: Mon, 20 Apr 2015 21:59:29 -0400
To: Kevin L Phair II via RT <bug-HTTP-Server-Simple [...] rt.cpan.org>
From: Kevin Falcone <cpan [...] jibsheet.com>
Download (untitled) / with headers
text/plain 808b
On Fri, Apr 17, 2015 at 11:36:09AM -0400, Kevin L Phair II via RT wrote: Show quoted text
> It looks like the test plan calls for 55 tests while on a jail, but only 45 tests are run. > > FreeBSD operator.ny1.nyi.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > # sysctl -n security.jail.jailed > 1
Thanks for the report. That makes sense, the tests are actually downgraded in a freebsd jail explicitly: https://github.com/jibsheet/http-server-simple/blob/master/t/04cgi.t#L34 Unfortunately - the last person to tweak these tests assumed count rather than running it on freebsd (or counting). It's pretty straightforward to find the 15 tests that would be skipped. I'll change this to 45 in an upcoming release. -kevin


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.