More on Testing

| | Comments (0)
Well, testing is good. I have been uncovering a few subtle bugs. One was some weirdness in config.h where BYTEORDER was not getting defined, so MacPerl 5.6.1a1 thinks it is little-endian. Oops. That's all fixed.

Then we find that perl does not completely implement sprintf, and that it leaves the e/f/g formats for the local sprintf to handle. And there is at least one bug in SFIO's sprintf implementation, and maybe two (that is, it rounds 0.9 down to 0 for %0.f, and it pads %010g with spaces to the left, instead of 0s). One or both of these may have been fixed in more recent SFIOs.

I also added some Makefile instructions to install the libs in :lib:macos: into :lib:, simplifying a few things. Yay.

I am going to start the tests over from scratch, as I found out some interesting things. First, "@INC = '../lib'" works fine in MacPerl 5.6.1. Is this good or bad? I dunno, but for now I'll keep it, as it means far fewer patches to the test suite. Now that (as noted in the previous paragraph) Config.pm is in ::lib, we won't need to include ::macos:lib. Nifty.

I also found out that $ENV{MACPERL} and $ENV{PERL5LIB} were sometimes interfering with my test paths. Ack. So part of the test procedure would be to un-set those (under MPW).

Really, most of these tests need to be done under MPW. Oh well. use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on April 27, 2001 3:09 PM.

MacPerl Testing was the previous entry in this site.

use lib "../lib"; is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.