develooper Front page | perl.perl5.porters | Postings from January 2001

Re: [PATCH: perl@8342] comp/proto..........FAILED tests 112-123

Thread Previous
From:
Jarkko Hietaniemi
Date:
January 9, 2001 09:15
Subject:
Re: [PATCH: perl@8342] comp/proto..........FAILED tests 112-123
Message ID:
20010109111447.C6541@chaos.wustl.edu
On Tue, Jan 09, 2001 at 12:11:16PM -0500, Andy Dougherty wrote:
> On Tue, 9 Jan 2001, Roca, Ignasi wrote:
> 
> > Using Bison parser generator, the parser produces the message "parse error"
> > instead of "syntax error"
> > 
> > Following is a diff file of test script proto.t to avoid the test failures.
> 
> [patch that uses Config and then looks at $Config{ccflags} to see if
> -DUSE_PURE_BISON is present ]
> 
> I think the version below is better:  it doesn't rely on having built
> Config (which means it won't throw an error on 'make minitest') and it
> also doesn't assume that the only way to use BISON will always be via
> $Config{ccflags}.  I could easily see a user hand-editing perl.h or
> someone someday adding a new Configure variable to accomplish the same
> thing.  This patch just changes the regex to /(parse|syntax)/.

Yup, there are similar spots elsewhere, look at t/pragma/*.t for example.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About