Re: PEAR 1.4.0b1 run-tests results
| From: | Joe Stump | Date: | Wed, 24 Aug 2005 07:32:47 +0000 |
| Subject: | Re: PEAR 1.4.0b1 run-tests results | ||
| References: | 1 2 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2944@lists.php.net to get a copy of this message | ||
Nevermind, it's simply an issue with System/test.phpt. It's not a problem with the code, just a problem with the test itself. I'll know more after my tests have totally ran. Here is the patch to fix it Clay:
--- test.phpt.old 2005-08-24 00:30:44.000000000 -0700+++ test.phpt 2005-08-24 00:31:25.000000000 -0700 @@ -104,7 +104,8 @@ echo "Testing: which\n"; if (OS_UNIX) {
- if (System::which('ls') != '/bin/ls') {
+ // Check for /sw/bin/ls for Fink users
+ if (!in_array(System::which('ls'),array('/bin/ls','/sw/bin/ls'))) {
print "System::which('ls') failed\n";
}
if (System::which('/bin/ls') != '/bin/ls') {
Running the other tests now ...
--Joe
On Aug 24, 2005, at 12:25 AM, Joe Stump wrote:
Wait, if System::which('ls') returns '/bin/ls' how could your Fink install be screwing it up? The full path is the full path ... --Joe On Aug 24, 2005, at 12:18 AM, Clay Loveless wrote:-- Joseph C. Stump joe@joestump.net http://www.joestump.netJoe Stump (joe@joestump.net) wrote:-- Joseph C. Stump joe@joestump.net http://www.joestump.net --PEAR QA Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpIs the test using /usr/bin/ls? I think all UNIX boxen should be using /bin/ls (or checking with "which" first).The tests/System/test.phpt script is using System::which('ls'), and testing for /bin/ls as the result. Since Fink puts /sw/bin:/sw/sbin at the front of the path, and I've got the Fink GNU fileutils package installed, the test fails. It's not a big deal, but I suppose this could be added to the test to keep it from failing for me and other OS X Fink fileutils users ... Though I suspect we're a relatively small group. It's the other 34 tests that failed that I'm more concerned about. I will dig into the issues with those ASAP. I'll be away from the computer tomorrow, but will get back into it Thursday. -Clay -- Killersoft.com