Skip Menu |

This queue is for tickets about the PDF-Create CPAN distribution.

Report information
The Basics
Id: 61394
Status: resolved
Priority: 0/
Queue: PDF-Create

People
Owner: MARKUSB [...] cpan.org
Requestors: CHORNY [...] cpan.org
szabgab [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.06
Fixed in: (no value)



Subject: t/09-cgi.t fails on Windows
Date: Thu, 16 Sep 2010 14:30:22 +0200
To: bug-PDF-Create [...] rt.cpan.org
From: Gabor Szabo <szabgab [...] gmail.com>
The problem is that in this line the test tries to run the 09-cgi-script.pl my $cginame = File::Spec->catfile(dirname($0) . "/09-cgi-script.pl"); ok( !system(qq($cginame | $Config{"perlpath"} -n -e "print if \$. > 2" Show quoted text
>$pdfname)), "CGI executes" );
Windows, or at least Strawberry Perl on Windows does not handle this. The solution would be to run it with "perl" in front of the script name but the pipe still won't work. BTW I think the "path to current perl" is usually written as $^X. In any case there is no /usr/bin/pdftotext anyway so maybe this whole test shoudl be skipped on Windows? Gabor
Hi Gabor, I understand your windows perl (strawberry) can not handle the execution of the cgi.script as it is now. I happen to have rewritten this test in the last two releases to accommodate issues on windows and irix. I would like to keep it. Is there a way to determine that you are running strawberry ? I could skip this test for strawberry, then. Do you know what exactly does not work with strawberry ? If a fix does not break the test on other platforms we can fix it. Markus On Thu Sep 16 08:30:30 2010, szabgab@gmail.com wrote: Show quoted text
> The problem is that in this line the test tries to run the 09-cgi-script.pl > > my $cginame = File::Spec->catfile(dirname($0) . "/09-cgi-script.pl"); > ok( !system(qq($cginame | $Config{"perlpath"} -n -e "print if \$. > 2"
> >$pdfname)), "CGI executes" );
> > Windows, or at least Strawberry Perl on Windows does not handle this. The > solution would be to run it with "perl" in front of the script name but > the pipe still won't work. BTW I think the "path to current perl" is > usually written as $^X. > > In any case there is no /usr/bin/pdftotext anyway so maybe this whole > test shoudl be > skipped on Windows? > > Gabor
On Fri Sep 17 04:30:40 2010, MARKUSB wrote: Show quoted text
> Hi Gabor, > > I understand your windows perl (strawberry) can not handle the > execution of the cgi.script as it is now. I happen to have rewritten > this test in the last two releases to accommodate issues on windows > and irix. I would like to keep it. > Is there a way to determine that you are running strawberry ?
$^O eq 'MSWin32' Show quoted text
> I could skip this test for strawberry, then.
Or you can call $^X $cginame instead of just $cginame. This works without problems on Windows and should work on any platform. -- Alexandr Ciornii, http://chorny.net
will be fixed in 1.08