Skip Menu |

This queue is for tickets about the CGI-Kwiki CPAN distribution.

Report information
The Basics
Id: 2550
Status: new
Priority: 0/
Queue: CGI-Kwiki

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: t/test.t is not portable
I don't know if you got http://www.xray.mpe.mpg.de/mailing-lists/cpan-testers/2003-04/msg02224.html but you still got the same problem #ok(system("PERL5LIB=../../blib/lib;../../blib/script/kwiki-install") == 0); ok(system("$^X -Mblib=../../blib/lib ../../blib/script/kwiki-install") == 0);
From: Jost Krieger
[guest - Sat May 10 19:20:33 2003]: Show quoted text
> I don't know if you got > http://www.xray.mpe.mpg.de/mailing-lists/cpan-testers/2003- > 04/msg02224.html > but you still got the same problem > > #ok(system("PERL5LIB=../../blib/lib;../../blib/script/kwiki-install") > == 0); > ok(system("$^X -Mblib=../../blib/lib ../../blib/script/kwiki-install") > == 0);
That's not only not portable, it's plainly wrong, even on *nix it only works if PERL5LIB is already exported, otherwise it either uses an old kwiki-install or breaks (like for me today).
[guest - Thu Aug 7 16:31:54 2003]: Show quoted text
> [guest - Sat May 10 19:20:33 2003]: >
04/msg02224.html Show quoted text
> > but you still got the same problem > > > > #ok(system("PERL5LIB=../../blib/lib;../../blib/script/kwiki-
install") Show quoted text
> > == 0); > > ok(system("$^X -Mblib=../../blib/lib ../../blib/script/kwiki-
install") Show quoted text
> > == 0);
> > That's not only not portable, it's plainly wrong, even on *nix it only > works if PERL5LIB is already exported, otherwise it either uses an old > kwiki-install or breaks (like for me today).
How do you figure? Heard of %ENV?
Show quoted text
> > == 0); > > ok(system("$^X -Mblib=../../blib/lib ../../blib/script/kwiki-
install") Show quoted text
> > == 0);
> > That's not only not portable, it's plainly wrong
Try system("$^X -Mblib script/kwiki-install") instead