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