Skip Menu |

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 125431
Status: open
Priority: 0/
Queue: App-perlbrew

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

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



Subject: t/http-ua-detect-non-curl.t fails (0.83)
On all of my smokers: # PATH=/usr/home/eserte/.cpan/build/2018053000/App-perlbrew-0.83-2/t/fake-bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/cpansand/bin/freebsd9.3:/home/cpansand/bin/sh:/home/cpansand/bin:/usr/games:/home/cpansand/devel:/usr/home/eserte/src/srezic-misc/scripts # curl = /usr/local/bin/curl # Failed test at t/http-ua-detect-non-curl.t line 18. # got: '/usr/local/bin/curl' # expected: '/usr/home/eserte/.cpan/build/2018053000/App-perlbrew-0.83-2/t/fake-bin/curl' # Failed test 'UA: curl' # at t/http-ua-detect-non-curl.t line 29. # got: 'curl' # expected: 'wget' # Looks like you failed 2 tests of 2. t/http-ua-detect-non-curl.t ............ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests This is an example log from a freebsd system. On linux systems the got value is different (/usr/bin/curl).
Subject: [rt.cpan.org #125431] t/http-ua-detect-non-curl.t fails
Date: Sat, 9 Jun 2018 06:39:34 +0200
To: bug-App-perlbrew [...] rt.cpan.org
From: Stephan Sachse <ste.sachse [...] gmail.com>
the problem is 'App-perlbrew-0.83/t/fake-bin/curl' from the tarbal. there is no execute bit set. but File::Which checks for it (https://metacpan.org/source/PLICEASE/File-Which-1.22/lib/File/Which.pm#L79-80) -- Software is like sex, it's better when it's free!
This issue was resolved in 0.84. The tarball made since 0.83 was produced by mbtiny and that has a side effect of not reserving file permission mode in the process. I had to update the test briefly to accomodate this situation.