Skip Menu |

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

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

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

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



Subject: Tests failing on Windows, patch provided
The Kwiki tests fail under a Windows build. This means ActiveStates autobuild system isn't creating a ppm, and anyone trying to build Kwiki on Windows is getting 66.6% of tests fail. I've written a fix for test.t that detects if the system in Windows and runs the appropriate commands. Patch attached. Lyle
Subject: test.patch
--- test.t Sat Jan 24 16:45:54 2009 +++ test.t.new Sat Jan 24 17:06:14 2009 @@ -9,7 +9,12 @@ rmtree('t/kwiki'); ok(mkdir 't/kwiki', 0777); ok(chdir 't/kwiki'); -ok(system("PERL5LIB=../../blib/lib;../../blib/script/kwiki-install") == 0); +if ( ( $^O eq 'MSWin32' ) || defined( $ENV{'OS'} ) ) { + ok(system("SET PERL5LIB=../../blib/lib") == 0 && system('..\..\blib\script\kwiki-install') == 0); +}#if +else { + ok(system("PERL5LIB=../../blib/lib;../../blib/script/kwiki-install") == 0); +}#else ok(-f 'config.yaml'); ok(-d 'database'); ok(-f 'database/HomePage');