Skip Menu |
 

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 14378
Status: resolved
Priority: 0/
Queue: Test-Harness

People
Owner: andy [...] hexten.net
Requestors: davec [...] ActiveState.com
Cc:
AdminCc:

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



Date: Wed, 31 Aug 2005 11:30:09 -0700
From: Dave Clendenan <davec [...] ActiveState.com>
To: bug-test-harness [...] rt.cpan.org
Subject: prove bug - incorrect IO redirection
Download (untitled) / with headers
text/plain 788b
Hi I've found a minor bug found in prove, when run under FreeBSD's bourne shell: @switches can end up empty if no options are passed to prove, which leads to prove incorrectly redirecting stdin. Perl version was 5.6.1 The following one-line patch fixes it. Thanks Dave ---------------------------------------------------------- Index: Test-Harness/bin/prove --- Test-Harness/bin/prove.~1~ Wed Aug 31 10:25:00 2005 +++ Test-Harness/bin/prove Wed Aug 31 10:25:00 2005 @@ -63,7 +63,7 @@ # Build up TH switches push( @switches, map { "-I$_" } @includes ); -$Test::Harness::Switches = join( " ", @switches ); +$Test::Harness::Switches = join( " ", @switches ) if @switches; print "# \$Test::Harness::Switches: $Test::Harness::Switches\n" if $debug; my @tests; End of Patch.
prove is a from-scratch rewrite in 2.99 - so it'd be unlucky if this problem still exists.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.